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
 
877
 
878
 $(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
878
 $(ELF2EFI32) : util/elf2efi.c $(MAKEDEPS)
879
 	$(QM)$(ECHO) "  [HOSTCC] $@"
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
 CLEANUP += $(ELF2EFI32)
881
 CLEANUP += $(ELF2EFI32)
882
 
882
 
883
 $(ELF2EFI64) : util/elf2efi.c $(MAKEDEPS)
883
 $(ELF2EFI64) : util/elf2efi.c $(MAKEDEPS)
884
 	$(QM)$(ECHO) "  [HOSTCC] $@"
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
 CLEANUP += $(ELF2EFI64)
886
 CLEANUP += $(ELF2EFI64)
887
 
887
 
888
 $(EFIROM) : util/efirom.c $(MAKEDEPS)
888
 $(EFIROM) : util/efirom.c $(MAKEDEPS)

Loading…
Cancel
Save