configure: also respect CPPFLAGS from environment (if set).

This commit is contained in:
Juan RP 2013-10-23 15:59:10 +02:00
parent 7b0e9967b1
commit fc9fda7195

4
configure vendored
View File

@ -213,6 +213,10 @@ linux)
;;
esac
if [ -n "$CPPFLAGS" ]; then
echo "CPPFLAGS += $CPPFLAGS" >>$CONFIG_MK
fi
# Add CPPFLAGS/CFLAGS/LDFLAGS to CC for testing features
XCC="$CC $CFLAGS $CPPFLAGS $LDFLAGS"
# Make sure to disable --as-needed for CC tests.