diff options
author | Ulrich Drepper <drepper@redhat.com> | 2004-09-20 14:47:18 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2004-09-20 14:47:18 +0000 |
commit | 54beacabbe34d033abcf9545c28f091ae06e944b (patch) | |
tree | de38de4f58f6b53a659d0832516c300ae9eb4c41 /configure.in | |
parent | efec50797a13f527967ec8e0113fd9405ec7e7bc (diff) | |
download | glibc-54beacabbe34d033abcf9545c28f091ae06e944b.tar.gz |
Update.
2004-09-20 Jakub Jelinek <jakub@redhat.com>
* configure.in (libc_cv_z_relro): Only set to yes if linker script
contains DATA_SEGMENT_RELRO_END.
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 |