configure: force --no-as-needed in CC tests.

This commit is contained in:
Juan RP 2012-07-19 17:50:29 +02:00
parent eb02d30791
commit 634b5f726a

5
configure vendored
View File

@ -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()
{