Browse Source

[efi] Fix link order for elf2efi

Dependencies are considered in left-to-right order so the source file
needs to come first in this case.

Signed-off-by: Piotr Jaroszyński <p.jaroszynski@gmail.com>
Signed-off-by: Joshua Oreman <oremanj@rwcr.net>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Piotr Jaroszyński 14 years ago
parent
commit
ba27168c2e
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      src/Makefile.housekeeping

+ 2
- 2
src/Makefile.housekeeping View File

@@ -877,12 +877,12 @@ ELF2EFI_CFLAGS	:= -I$(BINUTILS_DIR)/include -I$(BFD_DIR)/include \
877 877
 
878 878
 $(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
879 879
 	$(QM)$(ECHO) "  [HOSTCC] $@"
880
-	$(Q)$(HOST_CC) $(ELF2EFI_CFLAGS) -DMDE_CPU_IA32 -O2 -o $@ $<
880
+	$(Q)$(HOST_CC) $< $(ELF2EFI_CFLAGS) -DMDE_CPU_IA32 -O2 -o $@
881 881
 CLEANUP += $(ELF2EFI32)
882 882
 
883 883
 $(ELF2EFI64) : util/elf2efi.c $(MAKEDEPS)
884 884
 	$(QM)$(ECHO) "  [HOSTCC] $@"
885
-	$(Q)$(HOST_CC) $(ELF2EFI_CFLAGS) -DMDE_CPU_X64 -O2 -o $@ $<
885
+	$(Q)$(HOST_CC) $< $(ELF2EFI_CFLAGS) -DMDE_CPU_X64 -O2 -o $@
886 886
 CLEANUP += $(ELF2EFI64)
887 887
 
888 888
 $(EFIROM) : util/efirom.c $(MAKEDEPS)

Loading…
Cancel
Save