mirror of https://git.musl-libc.org/git/musl
use -nostdlib in linker tests to avoid possible missing crt/lib issues
This commit is contained in:
parent
67a0383d07
commit
f1fd7577ba
|
@ -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# }"
|
||||||
|
|
Loading…
Reference in New Issue