zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 264dd2eb579e78471c639baf698f7665ea016349 (tree)
parent e2b9c153bdfa2c5e4005d5957062e0eaf3b339a2
Author: Marc Tiehuis <marctiehuis@gmail.com>
Date:   Sat, 21 Oct 2017 22:24:15 +0000

Set FreeBSD ELF OS/ABI when targeting

Closes #553.

Diffstat:
Msrc/link.cpp | 4++++
1 file changed, 4 insertions(+), 0 deletions(-)

diff --git a/src/link.cpp b/src/link.cpp @@ -150,6 +150,10 @@ static const char *getLDMOption(const ZigTarget *t) { if (t->env_type == ZigLLVM_GNUX32) { return "elf32_x86_64"; } + // Any target elf will use the freebsd osabi if suffixed with "_fbsd". + if (t->os == OsFreeBSD) { + return "elf_x86_64_fbsd"; + } return "elf_x86_64"; default: zig_unreachable();