From: Thomas Miletich Date: Mon, 23 Jul 2012 22:03:05 +0000 (+0100) Subject: [build] Fix building under OpenBSD X-Git-Tag: v1.20.1~1683 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=c70586f6e93b975c68af14b108d5114636af6ba0;p=thirdparty%2Fipxe.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 Modified-by: Michael Brown Signed-off-by: Michael Brown --- 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