Browse Source

[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>
tags/v1.20.1
Thomas Miletich 12 years ago
parent
commit
c70586f6e9
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/arch/i386/Makefile

+ 2
- 0
src/arch/i386/Makefile View File

@@ -54,6 +54,8 @@ CFLAGS		+= -m32
54 54
 ASFLAGS		+= --32
55 55
 ifeq ($(HOST_OS),FreeBSD)
56 56
 LDFLAGS		+= -m elf_i386_fbsd
57
+else ifeq ($(HOST_OS),OpenBSD)
58
+LDFLAGS		+= -m elf_i386_obsd
57 59
 else
58 60
 LDFLAGS		+= -m elf_i386
59 61
 endif

Loading…
Cancel
Save