summaryrefslogtreecommitdiffstats
path: root/src/arch
diff options
context:
space:
mode:
authorThomas Miletich2012-07-24 00:03:05 +0200
committerMichael Brown2012-07-24 00:04:17 +0200
commitc70586f6e93b975c68af14b108d5114636af6ba0 (patch)
treea76fa49910e068a5b7374c76314772ef341b7130 /src/arch
parent[vmware] Fix compilation under OpenBSD (diff)
downloadipxe-c70586f6e93b975c68af14b108d5114636af6ba0.tar.gz
ipxe-c70586f6e93b975c68af14b108d5114636af6ba0.tar.xz
ipxe-c70586f6e93b975c68af14b108d5114636af6ba0.zip
[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>
Diffstat (limited to 'src/arch')
-rw-r--r--src/arch/i386/Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/i386/Makefile b/src/arch/i386/Makefile
index ca2583303..8314f26da 100644
--- a/src/arch/i386/Makefile
+++ b/src/arch/i386/Makefile
@@ -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