]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elfutils/configure.ac: use $READELF, not readelf
authorSergei Trofimovich <slyfox@gentoo.org>
Sun, 14 Jun 2020 19:28:07 +0000 (20:28 +0100)
committerMark Wielaard <mark@klomp.org>
Mon, 15 Jun 2020 09:11:00 +0000 (11:11 +0200)
Allow user to specify own readelf. Use detected readelf,
not 'readelf'.

Noticed when was building elfutils on tuple-prefixed toolchain:

```
checking whether the compiler generates build-ids...
  ./configure: line 5197: readelf: command not found
no
```

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
ChangeLog
configure.ac

index 763fa002a36080ecc1e5131f7be1f14e3b8c7b09..8e79ec5cfd6d1ce1cc84cdf129df1b8c3ff12222 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2020-06-15  Sergei Trofimovich <slyfox@gentoo.org>
+
+       * configure.ac: Use READELF in build-id check.
+
 2020-06-11  Mark Wielaard  <mark@klomp.org>
 
        * configure.ac: Set version to 0.180.
index 74cc749dbd09647473afdf3dc7253e9b1c92107b..8d3bcb7b674a778500360258c20ab2ec618e1dad 100644 (file)
@@ -200,7 +200,7 @@ fi
 # We really want build-ids. Warn and force generating them if gcc was
 # configure without --enable-linker-build-id
 AC_CACHE_CHECK([whether the compiler generates build-ids], ac_cv_buildid, [dnl
-AC_LINK_IFELSE([AC_LANG_PROGRAM()],[ac_cv_buildid=yes; readelf -n conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || ac_cv_buildid=no],AC_MSG_FAILURE([unexpected compile failure]))])
+AC_LINK_IFELSE([AC_LANG_PROGRAM()],[ac_cv_buildid=yes; $READELF -n conftest$EXEEXT | grep -q NT_GNU_BUILD_ID || ac_cv_buildid=no],AC_MSG_FAILURE([unexpected compile failure]))])
 if test "$ac_cv_buildid" = "no"; then
        AC_MSG_WARN([compiler doesn't generate build-id by default])
        LDFLAGS="$LDFLAGS -Wl,--build-id"