diff options
author | Ulrich Drepper <drepper@redhat.com> | 2001-08-27 00:45:49 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2001-08-27 00:45:49 +0000 |
commit | fdde83499a05d3befb0e0c9299cd2bb718229d8b (patch) | |
tree | 2bffded715c39b771c589da9bd1b2823a85ec42c /configure.in | |
parent | 092243fa4ee3791ca27ee0827061a1f168ce9c94 (diff) | |
download | glibc-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.in | 11 |
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 |