mirror of
https://git.musl-libc.org/git/musl
synced 2025-03-25 03:52:53 +03:00
use -nostdlib in linker tests to avoid possible missing crt/lib issues
This commit is contained in:
parent
67a0383d07
commit
f1fd7577ba
2
configure
vendored
2
configure
vendored
@ -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# }"
|
||||
|
Loading…
x
Reference in New Issue
Block a user