CONFIGURE: add "--enable-minimal-flags"
This will turn off automagic adding of flags that might be unwanted such as "-g" or "-pipe".
This commit is contained in:
parent
be1e6bde65
commit
19d4356484
@ -179,6 +179,11 @@ AC_ARG_ENABLE(libproxy,
|
|||||||
[AS_HELP_STRING([--disable-libproxy],[disable libproxy support (default: auto)])],
|
[AS_HELP_STRING([--disable-libproxy],[disable libproxy support (default: auto)])],
|
||||||
libproxy=$enableval, libproxy=auto)
|
libproxy=$enableval, libproxy=auto)
|
||||||
|
|
||||||
|
AC_ARG_ENABLE(minimal-flags,
|
||||||
|
[AS_HELP_STRING([--enable-minimal-flags],[only add those CFLAGS that are really needed or not intrusive (default: no)])],
|
||||||
|
minimalflags=$enableval, minimalflags=no)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
dnl *********************************************************************
|
dnl *********************************************************************
|
||||||
dnl ** GLIB *************************************************************
|
dnl ** GLIB *************************************************************
|
||||||
@ -782,6 +787,8 @@ if test "x$GCC" = "xyes"; then
|
|||||||
if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
|
if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
|
||||||
CFLAGS="$CFLAGS -Wall"
|
CFLAGS="$CFLAGS -Wall"
|
||||||
fi
|
fi
|
||||||
|
dnl these flags might be unwanted
|
||||||
|
if test x$minimalflags != xyes; then
|
||||||
if test "$system" = "Linux" -o "$system" = "FreeBSD"; then
|
if test "$system" = "Linux" -o "$system" = "FreeBSD"; then
|
||||||
if test -z "`echo "$CFLAGS" | grep "\-pipe" 2> /dev/null`" ; then
|
if test -z "`echo "$CFLAGS" | grep "\-pipe" 2> /dev/null`" ; then
|
||||||
CFLAGS="$CFLAGS -pipe"
|
CFLAGS="$CFLAGS -pipe"
|
||||||
@ -790,6 +797,7 @@ if test "x$GCC" = "xyes"; then
|
|||||||
if test -z "`echo "$CFLAGS" | grep "\-g " 2> /dev/null`" ; then
|
if test -z "`echo "$CFLAGS" | grep "\-g " 2> /dev/null`" ; then
|
||||||
CFLAGS="$CFLAGS -g"
|
CFLAGS="$CFLAGS -g"
|
||||||
fi
|
fi
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
dnl does this compiler support -Wno-pointer-sign ?
|
dnl does this compiler support -Wno-pointer-sign ?
|
||||||
|
Loading…
Reference in New Issue
Block a user