mirror of
https://github.com/moparisthebest/curl
synced 2025-01-04 02:18:02 -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
|
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
|
fi
|
||||||
dnl strip off optimizer flags
|
dnl strip off optimizer flags
|
||||||
NEWFLAGS=""
|
NEWFLAGS=""
|
||||||
|
Loading…
Reference in New Issue
Block a user