From fc9fda7195e8f9741e743b99a1ead67204b2b3f5 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 23 Oct 2013 15:59:10 +0200 Subject: [PATCH] configure: also respect CPPFLAGS from environment (if set). --- configure | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure b/configure index c74552d6..187df527 100755 --- a/configure +++ b/configure @@ -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.