mirror of https://github.com/ipxe/ipxe.git
[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>pull/598/head
parent
acd74089f5
commit
c70586f6e9
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue