aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Miletich <thomas.miletich@gmail.com>2012-07-23 23:03:05 +0100
committerMichael Brown <mcb30@ipxe.org>2012-07-23 23:04:17 +0100
commitc70586f6e93b975c68af14b108d5114636af6ba0 (patch)
treea76fa49910e068a5b7374c76314772ef341b7130
parentacd74089f59fbc24f2b7cfeb5432b3a8464aff0d (diff)
downloadipxe-c70586f6e93b975c68af14b108d5114636af6ba0.zip
ipxe-c70586f6e93b975c68af14b108d5114636af6ba0.tar.gz
ipxe-c70586f6e93b975c68af14b108d5114636af6ba0.tar.bz2
[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>
-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 ca25833..8314f26 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