aboutsummaryrefslogtreecommitdiff
path: root/configure.in
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-08-27 00:45:49 +0000
committerUlrich Drepper <drepper@redhat.com>2001-08-27 00:45:49 +0000
commitfdde83499a05d3befb0e0c9299cd2bb718229d8b (patch)
tree2bffded715c39b771c589da9bd1b2823a85ec42c /configure.in
parent092243fa4ee3791ca27ee0827061a1f168ce9c94 (diff)
downloadglibc-fdde83499a05d3befb0e0c9299cd2bb718229d8b.tar
glibc-fdde83499a05d3befb0e0c9299cd2bb718229d8b.tar.gz
glibc-fdde83499a05d3befb0e0c9299cd2bb718229d8b.tar.bz2
glibc-fdde83499a05d3befb0e0c9299cd2bb718229d8b.zip
Update.
* configure.in: Fix test for .rela.dyn section.
Diffstat (limited to 'configure.in')
-rw-r--r--configure.in11
1 files changed, 9 insertions, 2 deletions
diff --git a/configure.in b/configure.in
index 719856e2b7..6663e8aae9 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