From 54beacabbe34d033abcf9545c28f091ae06e944b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 20 Sep 2004 14:47:18 +0000 Subject: Update. 2004-09-20 Jakub Jelinek * configure.in (libc_cv_z_relro): Only set to yes if linker script contains DATA_SEGMENT_RELRO_END. --- configure.in | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'configure.in') 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 -- cgit v1.2.3