mirror of
https://sourceware.org/git/glibc.git
synced 2025-10-12 19:04:54 +03:00
configure: Fix spelling of -Wl,--no-error-execstack option
BFD ld recognizes all -no-* options (with a single leading dash)
unconditionally.
Fixes commit a2bd5008a9
("Pass -Wl,--no-error-execstack for tests where -Wl,-z,execstack
is used [PR32717]").
This commit is contained in:
4
configure
vendored
4
configure
vendored
@@ -7122,7 +7122,7 @@ cat > conftest.c <<EOF
|
|||||||
int _start (void) { return 42; }
|
int _start (void) { return 42; }
|
||||||
EOF
|
EOF
|
||||||
if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp
|
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
|
-fPIC -shared -o conftest.so conftest.c
|
||||||
1>&5'
|
1>&5'
|
||||||
{ { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&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
|
printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
|
||||||
test $ac_status = 0; }; }
|
test $ac_status = 0; }; }
|
||||||
then
|
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 \
|
-nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \
|
||||||
| grep "warning: --no-error-execstack ignored" > /dev/null 2>&1; then
|
| grep "warning: --no-error-execstack ignored" > /dev/null 2>&1; then
|
||||||
true
|
true
|
||||||
|
@@ -1318,7 +1318,7 @@ if test $libc_cv_as_noexecstack = yes; then
|
|||||||
fi
|
fi
|
||||||
AC_SUBST(ASFLAGS_config)
|
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])
|
[libc_cv_no_error_execstack=yes], [libc_cv_no_error_execstack=no])
|
||||||
AC_SUBST(libc_cv_no_error_execstack)
|
AC_SUBST(libc_cv_no_error_execstack)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user