]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[build] Fix building under OpenBSD
authorThomas Miletich <thomas.miletich@gmail.com>
Mon, 23 Jul 2012 22:03:05 +0000 (23:03 +0100)
committerMichael Brown <mcb30@ipxe.org>
Mon, 23 Jul 2012 22:04:17 +0000 (23:04 +0100)
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>
src/arch/i386/Makefile

index ca258330328e3ad85b1641a97b7235eeb93b94e1..8314f26da1ec7b6f6c09eaeefc11928de945855b 100644 (file)
@@ -54,6 +54,8 @@ CFLAGS                += -m32
 ASFLAGS                += --32
 ifeq ($(HOST_OS),FreeBSD)
 LDFLAGS                += -m elf_i386_fbsd
+else ifeq ($(HOST_OS),OpenBSD)
+LDFLAGS                += -m elf_i386_obsd
 else
 LDFLAGS                += -m elf_i386
 endif