diff options
Diffstat (limited to 'src/link.cpp')
| -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) { |
