From 634b5f726ac59f456f7bff02e97a7497f3aad2bd Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 19 Jul 2012 17:50:29 +0200 Subject: [PATCH] configure: force --no-as-needed in CC tests. --- configure | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/configure b/configure index 8208ce14..33294550 100755 --- a/configure +++ b/configure @@ -213,9 +213,12 @@ linux) esac -# Add CPPFLAGS and CFLAGS to CC for testing features +# Add CPPFLAGS/CFLAGS/LDFLAGS to CC for testing features XCC="$CC `$SED -n -e 's/CPPLAGS+=*\(.*\)/\1/p' $CONFIG_MK`" XCC="$XCC `$SED -n -e 's/CFLAGS+=*\(.*\)/\1/p' $CONFIG_MK`" +XCC="$XCC `$SED -n -e 's/LDFLAGS+=*\(.*\)/\1/p' $CONFIG_MK`" +# Make sure to disable --as-needed for CC tests. +XCC="$XCC -Wl,--no-as-needed" check_compiler_flag() {