From fdde83499a05d3befb0e0c9299cd2bb718229d8b Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Mon, 27 Aug 2001 00:45:49 +0000 Subject: Update. * configure.in: Fix test for .rela.dyn section. --- configure.in | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'configure.in') diff --git a/configure.in b/configure.in index 719856e..6663e8a 100644 --- a/configure.in +++ b/configure.in @@ -1074,11 +1074,18 @@ dnl cross-platform since the gcc used can be a cross compiler. Without dnl introducing new options this is not easily doable. Instead use a tool dnl which always is cross-platform: readelf. To detect whether -z combreloc dnl look for a section named .rel.dyn. - if readelf -S conftest.so | fgrep .rel.dyn > /dev/null; then - AC_DEFINE(HAVE_Z_COMBRELOC) + if readelf -S conftest.so | grep '\.rel\(a\|\)\.dyn' > /dev/null; then + libc_cv_z_combreloc=yes + else + libc_cv_z_combreloc=no fi + else + libc_cv_z_combreloc=no fi rm -f conftest*]) + if test "$libc_cv_z_combreloc" = yes; then + AC_DEFINE(HAVE_Z_COMBRELOC) + fi fi if test $elf != yes; then -- cgit v1.1