From a45c8043358151085633b15ea615f31f3bd680f7 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Fri, 1 Nov 2013 00:51:04 -0700 Subject: Check for prefixed ar, readelf, and nm Sometimes with cross-compile toolchains, the tools are prefixed with the target arch. Using AC_CHECK_TOOL looks for tools named like this. Signed-off-by: Michael Forney Signed-off-by: Mark Wielaard --- libasm/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libasm') diff --git a/libasm/Makefile.am b/libasm/Makefile.am index e16d4be0..4d81536b 100644 --- a/libasm/Makefile.am +++ b/libasm/Makefile.am @@ -69,7 +69,7 @@ libasm.so: libasm_pic.a libasm.map -Wl,--version-script,$(srcdir)/libasm.map,--no-undefined \ -Wl,--soname,$@.$(VERSION) \ ../libebl/libebl.a ../libelf/libelf.so $(libasm_so_LDLIBS) - if readelf -d $@ | fgrep -q TEXTREL; then exit 1; fi + if $(READELF) -d $@ | fgrep -q TEXTREL; then exit 1; fi ln -fs $@ $@.$(VERSION) install: install-am libasm.so -- cgit v1.2.3