diff options
| author | Thomas Miletich | 2012-07-24 00:03:05 +0200 |
|---|---|---|
| committer | Michael Brown | 2012-07-24 00:04:17 +0200 |
| commit | c70586f6e93b975c68af14b108d5114636af6ba0 (patch) | |
| tree | a76fa49910e068a5b7374c76314772ef341b7130 | |
| parent | [vmware] Fix compilation under OpenBSD (diff) | |
| download | ipxe-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>
| -rw-r--r-- | src/arch/i386/Makefile | 2 |
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 |
