use -nostdlib in linker tests to avoid possible missing crt/lib issues

This commit is contained in:
Rich Felker 2012-06-07 00:27:34 -04:00
parent 67a0383d07
commit f1fd7577ba
1 changed files with 1 additions and 1 deletions

2
configure vendored
View File

@ -70,7 +70,7 @@ fi
tryldflag () { tryldflag () {
printf "checking whether linker accepts %s... " "$2" printf "checking whether linker accepts %s... " "$2"
echo "typedef int x;" > "$tmpc" echo "typedef int x;" > "$tmpc"
if "$CC" -shared "$2" -o /dev/null "$tmpc" 2>/dev/null ; then if "$CC" -nostdlib -shared "$2" -o /dev/null "$tmpc" 2>/dev/null ; then
printf "yes\n" printf "yes\n"
eval "$1=\"\${$1} \$2\"" eval "$1=\"\${$1} \$2\""
eval "$1=\${$1# }" eval "$1=\${$1# }"