diff options
author | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-02-09 13:36:22 -0300 |
---|---|---|
committer | Adhemerval Zanella <adhemerval.zanella@linaro.org> | 2024-04-17 16:12:41 -0300 |
commit | c72809e0d871e8eebee20a6d9d0319392555e3d5 (patch) | |
tree | c72b1f2c6fe1e68abce999c1836121bdcdbe9be5 | |
parent | db7a80b30f1972456fde5a0db1e1047b048fdf28 (diff) | |
download | glibc-c72809e0d871e8eebee20a6d9d0319392555e3d5.zip glibc-c72809e0d871e8eebee20a6d9d0319392555e3d5.tar.gz glibc-c72809e0d871e8eebee20a6d9d0319392555e3d5.tar.bz2 |
x86_64: Fix mark-plt configure test
-rwxr-xr-x | sysdeps/x86_64/configure | 4 | ||||
-rw-r--r-- | sysdeps/x86_64/configure.ac | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/sysdeps/x86_64/configure b/sysdeps/x86_64/configure index f22ea7c..e641e75 100755 --- a/sysdeps/x86_64/configure +++ b/sysdeps/x86_64/configure @@ -32,7 +32,7 @@ cat > conftest.c <<EOF int _start (void) { return 42; } EOF if { ac_try='${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp - -Wl,-z,mark-plt -nostdlib -nostartfiles + -Wl,-z,mark-plt, -Wl,--fatal-warnings -nostdlib -nostartfiles -fPIC -shared -o conftest.so conftest.c 1>&5' { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 @@ -41,7 +41,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,-z,mark-plt -nostdlib \ + if ${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS $no_ssp -Wl,-z,mark-plt, -Wl,--fatal-warnings -nostdlib \ -nostartfiles -fPIC -shared -o conftest.so conftest.c 2>&1 \ | grep "warning: -z mark-plt ignored" > /dev/null 2>&1; then true diff --git a/sysdeps/x86_64/configure.ac b/sysdeps/x86_64/configure.ac index 7815722..57caf63 100644 --- a/sysdeps/x86_64/configure.ac +++ b/sysdeps/x86_64/configure.ac @@ -10,7 +10,7 @@ LIBC_TRY_CC_OPTION([-mprefer-vector-width=128], LIBC_CONFIG_VAR([config-cflags-mprefer-vector-width], [$libc_cv_cc_mprefer_vector_width]) -LIBC_LINKER_FEATURE([-z mark-plt], [-Wl,-z,mark-plt], +LIBC_LINKER_FEATURE([-z mark-plt], [-Wl,-z,mark-plt, -Wl,--fatal-warnings], [libc_cv_z_mark_plt=yes], [libc_cv_z_mark_plt=no]) LIBC_CONFIG_VAR([have-z-mark-plt], [$libc_cv_z_mark_plt]) |