From cb8464bdc6a52cf8027a2783acdb3154d50d914f Mon Sep 17 00:00:00 2001 From: Juan RP Date: Tue, 11 Jan 2011 15:04:23 +0100 Subject: [PATCH] configure: respect CFLAGS/LDFLAGS passed via env. --- configure | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/configure b/configure index 697bede5..88f8ff8e 100755 --- a/configure +++ b/configure @@ -155,7 +155,13 @@ else fi echo "CC = $CC" >>$CONFIG_MK echo "CFLAGS = -fPIC -DPIC" >>$CONFIG_MK +if [ -n "$CFLAGS" ]; then + echo "CFLAGS += $CFLAGS" >>$CONFIG_MK +fi echo "LDFLAGS = -L\$(TOPDIR)/lib -L\$(LIBDIR)" >>$CONFIG_MK +if [ -n "$LDFLAGS" ]; then + echo "LDFLAGS += $LDFLAGS" >>$CONFIG_MK +fi echo "CPPFLAGS = -I. -I\$(TOPDIR) -I\$(TOPDIR)/include" >>$CONFIG_MK echo "CPPFLAGS += -DHAVE_CONFIG_H" >>$CONFIG_MK @@ -413,6 +419,8 @@ echo " BUILD_API_DOCS = $BUILD_API_DOCS_VALUE" echo " BUILD_PIE = $BUILD_PIE_VAL" echo " DEBUG = $DEBUG" echo " EXTERNAL PROPLIB = $EXTERNAL_PROPLIB_VALUE" +echo " CFLAGS = $CFLAGS" +echo " LDFLAGS = $LDFLAGS" echo echo " You can now run make && make install clean." echo