aboutsummaryrefslogtreecommitdiffstats
path: root/configure.ac
diff options
context:
space:
mode:
authorSergei Trofimovich <slyfox@gentoo.org>2020-06-14 20:28:07 +0100
committerMark Wielaard <mark@klomp.org>2020-06-15 11:11:00 +0200
commit9698a399292fbc5e07eac17217af2de8bf5cb4b0 (patch)
tree13e1a9d599b19bc09e7f5eb4e51290fd41ff133d /configure.ac
parent3eaa4421b2422452b40547aab3e8da0749990ef9 (diff)
downloadplatform_external_elfutils-9698a399292fbc5e07eac17217af2de8bf5cb4b0.tar.gz
platform_external_elfutils-9698a399292fbc5e07eac17217af2de8bf5cb4b0.tar.bz2
platform_external_elfutils-9698a399292fbc5e07eac17217af2de8bf5cb4b0.zip
elfutils/configure.ac: use $READELF, not readelf
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>
Diffstat (limited to 'configure.ac')
-rw-r--r--configure.ac2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac
index 74cc749d..8d3bcb7b 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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"