From: Jan Kiszka <
jan.k...@siemens.com>
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 <
jan.k...@siemens.com>
---
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