From c70586f6e93b975c68af14b108d5114636af6ba0 Mon Sep 17 00:00:00 2001 From: Thomas Miletich Date: Mon, 23 Jul 2012 23:03:05 +0100 Subject: [PATCH] [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 --- src/arch/i386/Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/arch/i386/Makefile b/src/arch/i386/Makefile index ca258330..8314f26d 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