diff options
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 235b6d222c..19b8ba504a 100644 --- a/configure.in +++ b/configure.in @@ -1325,11 +1325,13 @@ EOF AC_CACHE_CHECK(for -z relro option, libc_cv_z_relro, [dnl + libc_cv_z_relro=no if AC_TRY_COMMAND([${CC-cc} -v --help 2>&1|grep "z relro" 1>&AS_MESSAGE_LOG_FD]) then - libc_cv_z_relro=yes - else - libc_cv_z_relro=no + if AC_TRY_COMMAND([${CC-cc} -Wl,--verbose 2>&1|grep DATA_SEGMENT_RELRO_END 1>&AS_MESSAGE_LOG_FD]) + then + libc_cv_z_relro=yes + fi fi]) AC_SUBST(libc_cv_z_relro) if test $libc_cv_z_relro = yes; then |