]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
configure: Fix spelling of -Wl,--no-error-execstack option
authorFlorian Weimer <fweimer@redhat.com>
Fri, 7 Mar 2025 06:52:11 +0000 (07:52 +0100)
committerFlorian Weimer <fweimer@redhat.com>
Fri, 7 Mar 2025 07:07:26 +0000 (08:07 +0100)
BFD ld recognizes all -no-* options (with a single leading dash)
unconditionally.

Fixes commit a2bd5008a99032830add3e4005c25b61e3207112
("Pass -Wl,--no-error-execstack for tests where -Wl,-z,execstack
is used [PR32717]").

configure
configure.ac

index 2a996cb0d9cfdf281c8a894f57994d9c178aa49e..674d1d7e4a69c10f5b992b24590520d8f296d0c2 100755 (executable)
--- a/configure
+++ b/configure
@@ -7122,7 +7122,7 @@ cat > conftest.c <<EOF
 int _start (void) { return 42; }
 EOF
 if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
-                 -Wl,-no-error-execstack -nostdlib -nostartfiles
+                 -Wl,--no-error-execstack -nostdlib -nostartfiles
                  -fPIC -shared -o conftest.so conftest.c
                  1>&5'
   { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5
@@ -7131,7 +7131,7 @@ if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
   test $ac_status = 0; }; }
 then
-  if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-no-error-execstack -nostdlib \
+  if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,--no-error-execstack -nostdlib \
       -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
       | grep "warning: --no-error-execstack ignored" > /dev/null 2>&1; then
     true
index 5f6f0b72bc6a380b6d2f999385fc1f76faebeb52..57cd24c87d9b1962255bc310d7ef1a6cbe3ea2d5 100644 (file)
@@ -1318,7 +1318,7 @@ if test $libc_cv_as_noexecstack = yes; then
 fi
 AC_SUBST(ASFLAGS_config)
 
-LIBC_LINKER_FEATURE([--no-error-execstack], [-Wl,-no-error-execstack],
+LIBC_LINKER_FEATURE([--no-error-execstack], [-Wl,--no-error-execstack],
                    [libc_cv_no_error_execstack=yes], [libc_cv_no_error_execstack=no])
 AC_SUBST(libc_cv_no_error_execstack)