summaryrefslogtreecommitdiff
path: root/configure
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-06-07 00:27:34 -0400
committerRich Felker <dalias@aerifal.cx>2012-06-07 00:27:34 -0400
commitf1fd7577ba7eb2a202833e89c63b8e01dedfca05 (patch)
tree0d8dd7deb23fce16d74a8eab025b5167f5f484e3 /configure
parent67a0383d07987cc4adeee3a06b60c666d9f9d62e (diff)
downloadmusl-f1fd7577ba7eb2a202833e89c63b8e01dedfca05.tar.gz
musl-f1fd7577ba7eb2a202833e89c63b8e01dedfca05.tar.bz2
musl-f1fd7577ba7eb2a202833e89c63b8e01dedfca05.tar.xz
musl-f1fd7577ba7eb2a202833e89c63b8e01dedfca05.zip
use -nostdlib in linker tests to avoid possible missing crt/lib issues
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure2
1 files changed, 1 insertions, 1 deletions
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# }"