From: Sam James Date: Sun, 23 Jan 2022 15:36:55 +0000 (+0000) Subject: build: Respect $(OBJDUMP) X-Git-Tag: 0.11.5~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f11ab6722367f1cf62704ed3c827b9b68dcb5397;p=thirdparty%2Flibbsd.git build: Respect $(OBJDUMP) We already search for it in `./configure` so let's respect the result of that search. This helps with cross-compilation and any other cases where one might want to choose a different toolchain. Closes: !16 Bug: https://bugs.gentoo.org/831863 Signed-off-by: Sam James Signed-off-by: Guillem Jover --- diff --git a/src/Makefile.am b/src/Makefile.am index 2aa5f5b..ea0bdbe 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -141,7 +141,7 @@ TRANSPARENT_LIBMD_DEPENDS = format.ld format.ld: $(CC) -shared -nostdlib -nostartfiles -x assembler /dev/null -o $@.so - objdump -f $@.so | sed -n 's/.*file format \(.*\)/OUTPUT_FORMAT(\1)/;T;p' > $@ + $(OBJDUMP) -f $@.so | sed -n 's/.*file format \(.*\)/OUTPUT_FORMAT(\1)/;T;p' > $@ rm -f $@.so endif