From: Jan Kiszka <[email protected]>

Addresses "command not found" errors in case only the cross-build
variant of binutils is installed, not the native one. And it is also
more correct.

Signed-off-by: Jan Kiszka <[email protected]>
---
 Makefile.am | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile.am b/Makefile.am
index 2af387f..6dc1df8 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -355,7 +355,7 @@ $(top_builddir)/main.o $(top_builddir)/kernel-stub/main.o: 
$(GEN_VERSION_H)
 $(efi_solib): $(efi_objects)
        $(AM_V_CCLD)$(LD) $(efi_ldflags) $(efi_objects) \
                -o $@ -lefi -lgnuefi $(shell $(CC) $(CFLAGS) 
-print-libgcc-file-name); \
-       nm -D -u $@ | grep ' U ' && exit 1 || :
+       $(NM) -D -u $@ | grep ' U ' && exit 1 || :
 
 $(efi_loadername): $(efi_solib)
        $(AM_V_GEN) $(OBJCOPY) $(efi_sections) -j .init_array \
@@ -364,7 +364,7 @@ $(efi_loadername): $(efi_solib)
 $(kernel_stub_solib): $(kernel_stub_objects)
        $(AM_V_CCLD)$(LD) $(efi_ldflags) $(kernel_stub_objects) \
                -o $@ -lefi -lgnuefi $(shell $(CC) $(CFLAGS) 
-print-libgcc-file-name); \
-       nm -D -u $@ | grep ' U ' && exit 1 || :
+       $(NM) -D -u $@ | grep ' U ' && exit 1 || :
 
 $(kernel_stub_name): $(kernel_stub_solib)
        $(AM_V_GEN) $(OBJCOPY) $(efi_sections) $(objcopy_format) $< $@
-- 
2.47.3

-- 
You received this message because you are subscribed to the Google Groups "EFI 
Boot Guard" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/efibootguard-dev/4922ddce-80b9-431f-9e61-6486bb6699c7%40siemens.com.

Reply via email to