mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
When --enable-debug is used, for every -I provided to $CPPFLAGS we add
a corresponding -isystem, if using gcc, to inhibit warnings on those headers.
This commit is contained in:
parent
d765a00adb
commit
455b1af214
14
configure.ac
14
configure.ac
@ -1214,7 +1214,19 @@ AC_HELP_STRING([--disable-debug],[Disable debug options]),
|
||||
|
||||
fi
|
||||
|
||||
CFLAGS="$CFLAGS $WARN"
|
||||
NEWFLAGS=""
|
||||
for flag in $CPPFLAGS; do
|
||||
case "$flag" in
|
||||
-I*)
|
||||
dnl include path
|
||||
add=`echo $flag | sed 's/^-I/-isystem /g'`
|
||||
NEWFLAGS="$NEWFLAGS $add"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
CFLAGS="$CFLAGS $WARN $NEWFLAGS"
|
||||
|
||||
fi
|
||||
dnl strip off optimizer flags
|
||||
NEWFLAGS=""
|
||||
|
Loading…
Reference in New Issue
Block a user