david/ipxe
Archived
1
0

[build] Fix building under OpenBSD

Similarly to FreeBSD, OpenBSD requires the object format to be
specified as elf_i386_obsd rather than elf_i386.

Reported-by: Jiri B <jirib@devio.us>
Modified-by: Michael Brown <mcb30@ipxe.org>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Thomas Miletich 2012-07-23 23:03:05 +01:00 committed by Michael Brown
parent acd74089f5
commit c70586f6e9

View File

@ -54,6 +54,8 @@ CFLAGS += -m32
ASFLAGS += --32 ASFLAGS += --32
ifeq ($(HOST_OS),FreeBSD) ifeq ($(HOST_OS),FreeBSD)
LDFLAGS += -m elf_i386_fbsd LDFLAGS += -m elf_i386_fbsd
else ifeq ($(HOST_OS),OpenBSD)
LDFLAGS += -m elf_i386_obsd
else else
LDFLAGS += -m elf_i386 LDFLAGS += -m elf_i386
endif endif