提交 f1fd7577 编写于 作者: R Rich Felker

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

上级 67a0383d
...@@ -70,7 +70,7 @@ fi ...@@ -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# }"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册