diff options
| author | Andrew Kelley <superjoe30@gmail.com> | 2017-08-27 05:15:24 -0400 |
|---|---|---|
| committer | Andrew Kelley <superjoe30@gmail.com> | 2017-08-27 05:15:24 -0400 |
| commit | ff2c7946128fac8488e393655e1a3371983b7620 (patch) | |
| tree | 15119490155b6f5dd5dd047f2194c0318e3a3a51 /src | |
| parent | 91536813ec5d159ed4bea857621ed10a1216411a (diff) | |
| download | zig-ff2c7946128fac8488e393655e1a3371983b7620.tar.gz zig-ff2c7946128fac8488e393655e1a3371983b7620.zip | |
all behavior tests passing for macos
See #273
Diffstat (limited to 'src')
| -rw-r--r-- | src/link.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/link.cpp b/src/link.cpp index b51fa6e4ca..2f8ac28266 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -325,6 +325,10 @@ static void construct_linker_job_elf(LinkJob *lj) { lj->args.append(get_libc_static_file(g, "crtend.o")); lj->args.append(get_libc_file(g, "crtn.o")); } + + if (!g->is_native_target) { + lj->args.append("--allow-shlib-undefined"); + } } static bool is_target_cyg_mingw(const ZigTarget *target) { |
