From: Rich Felker Date: Thu, 7 Jun 2012 04:27:34 +0000 (-0400) Subject: use -nostdlib in linker tests to avoid possible missing crt/lib issues X-Git-Tag: v0.9.2~52 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=f1fd7577ba7eb2a202833e89c63b8e01dedfca05;p=oweals%2Fmusl.git use -nostdlib in linker tests to avoid possible missing crt/lib issues --- diff --git a/configure b/configure index d29d2dcd..f765ca72 100755 --- a/configure +++ b/configure @@ -70,7 +70,7 @@ fi tryldflag () { printf "checking whether linker accepts %s... " "$2" 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" eval "$1=\"\${$1} \$2\"" eval "$1=\${$1# }"