From f11ab6722367f1cf62704ed3c827b9b68dcb5397 Mon Sep 17 00:00:00 2001 From: Sam James Date: Sun, 23 Jan 2022 15:36:55 +0000 Subject: [PATCH] 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 --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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