about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAdhemerval Zanella <adhemerval.zanella@linaro.org>2022-09-01 15:19:23 -0300
committerAdhemerval Zanella <adhemerval.zanella@linaro.org>2024-04-17 16:12:41 -0300
commitf85b9dde83b9de846e4417608a3276d591538eb5 (patch)
tree2f4b18fdcb7e0f9bfbdc1fb01ec20e10fe548518
parentd57642f9fa4bb0a21c37ef0b19965c62c16ae46a (diff)
downloadglibc-f85b9dde83b9de846e4417608a3276d591538eb5.tar.gz
glibc-f85b9dde83b9de846e4417608a3276d591538eb5.tar.xz
glibc-f85b9dde83b9de846e4417608a3276d591538eb5.zip
Fix libc_cv_protected_data check if compiler defaults to PIE
-rwxr-xr-xconfigure2
-rw-r--r--configure.ac2
2 files changed, 2 insertions, 2 deletions
diff --git a/configure b/configure
index c47702608e..37af7ce6a2 100755
--- a/configure
+++ b/configure
@@ -6582,7 +6582,7 @@ EOF
 		  extern int bar;
 		  int main (void) { return bar; }
 EOF
-		  if { ac_try='${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
+		  if { ac_try='${CC-cc} -fno-pie -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
   (eval $ac_try) 2>&5
   ac_status=$?
diff --git a/configure.ac b/configure.ac
index 9846f28d05..b501ddd439 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1126,7 +1126,7 @@ EOF
 		  extern int bar;
 		  int main (void) { return bar; }
 EOF
-		  if AC_TRY_COMMAND(${CC-cc} -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so); then
+		  if AC_TRY_COMMAND(${CC-cc} -fno-pie -nostdlib -nostartfiles $no_ssp conftest.c -o conftest conftest.so); then
 		    libc_cv_protected_data=yes
 		  fi
 		fi