瀏覽代碼

[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 年之前
父節點
當前提交
c70586f6e9
共有 1 個檔案被更改,包括 2 行新增0 行删除
  1. 2
    0
      src/arch/i386/Makefile

+ 2
- 0
src/arch/i386/Makefile 查看文件

@@ -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…
取消
儲存