From d8fc5fee0a88b1dcb51bb4aff040419d2068ba09 Mon Sep 17 00:00:00 2001 From: Miroslav Lichvar Date: Tue, 17 Aug 2010 12:31:03 +0200 Subject: [PATCH] Run configure tests with LDFLAGS --- configure | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/configure b/configure index a709bf9..9f5eda7 100755 --- a/configure +++ b/configure @@ -29,6 +29,8 @@ else CCWARNFLAGS="" fi +MYLDFLAGS="${LDFLAGS}" + # ====================================================================== # FUNCTIONS @@ -51,7 +53,7 @@ test_code () { echo "return 0; }" ) > docheck.c - ${MYCC} ${MYCFLAGS} ${MYCPPFLAGS} $cflags -o docheck docheck.c $ldflags >/dev/null 2>&1 + $MYCC $MYCFLAGS $MYCPPFLAGS $cflags -o docheck docheck.c $ldflags $MYLDFLAGS >/dev/null 2>&1 if [ $? -eq 0 ] then printf "Yes\n" @@ -465,7 +467,7 @@ sed -e "s%@EXTRA_OBJECTS@%${EXTRA_OBJECTS}%;\ s%@CCWARNFLAGS@%${CCWARNFLAGS}%;\ s%@CPPFLAGS@%${CPPFLAGS}%;\ s%@LIBS@%${LIBS}%;\ - s%@LDFLAGS@%${LDFLAGS}%;\ + s%@LDFLAGS@%${MYLDFLAGS}%;\ s%@EXTRA_LIBS@%${EXTRA_LIBS}%;\ s%@SYSDEFS@%${SYSDEFS}%;\ s%@EXTRA_DEFS@%${EXTRA_DEFS}%;\