diff options
author | Yang Yujie <yangyujie@loongson.cn> | 2023-08-03 16:35:24 +0800 |
---|---|---|
committer | caiyinyu <caiyinyu@loongson.cn> | 2023-08-04 14:04:37 +0800 |
commit | c579293f67f4717054e31b7015418b24b81ca217 (patch) | |
tree | bf04ec4645586514d68fcec140fc6cbb1142b971 /sysdeps/loongarch/configure | |
parent | 04bf7d2d8a79bf8d06ca811518688ccda190b376 (diff) | |
download | glibc-c579293f67f4717054e31b7015418b24b81ca217.zip glibc-c579293f67f4717054e31b7015418b24b81ca217.tar.gz glibc-c579293f67f4717054e31b7015418b24b81ca217.tar.bz2 |
LoongArch: Fix static PIE condition for toolchain bootstrapping.
This patch allows the static PIE startfile rcrt1.o to be built
without requiring libgcc_s.so from GCC, which depends on libc
in the first place.
Diffstat (limited to 'sysdeps/loongarch/configure')
-rw-r--r-- | sysdeps/loongarch/configure | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sysdeps/loongarch/configure b/sysdeps/loongarch/configure index 7f1dabb..5843c7c 100644 --- a/sysdeps/loongarch/configure +++ b/sysdeps/loongarch/configure @@ -55,7 +55,7 @@ EOF ac_status=$? printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 test $ac_status = 0; }; } \ - && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -shared -fPIC -o conftest2.so conftest2.S' + && { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS -shared -nostdlib -fPIC -o conftest2.so conftest2.S' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 (eval $ac_try) 2>&5 ac_status=$? |