diff options
| author | Andrew Kelley <andrew@ziglang.org> | 2019-08-20 19:09:52 -0400 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-08-20 19:09:52 -0400 |
| commit | 5f3d59f0ac78e01bd50419dab54d7fcbae15f17c (patch) | |
| tree | 59313f6debbbaafc18dafc5dfed6a479cede8cef /src/link.cpp | |
| parent | c39bb3ebc49096af45f3a69d4742e5f4d50cab62 (diff) | |
| parent | 3b5a8858c29582daf37856534abe150b568a7bb7 (diff) | |
| download | zig-5f3d59f0ac78e01bd50419dab54d7fcbae15f17c.tar.gz zig-5f3d59f0ac78e01bd50419dab54d7fcbae15f17c.zip | |
Merge branch 'master' into llvm9
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/link.cpp b/src/link.cpp index a7cb9ad26f..024143dfae 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -1755,7 +1755,7 @@ static void construct_linker_job_elf(LinkJob *lj) { // libc dep - if (g->libc_link_lib != nullptr) { + if (g->libc_link_lib != nullptr && g->out_type != OutTypeObj) { if (g->libc != nullptr) { if (!g->have_dynamic_link) { lj->args.append("--start-group"); |
