aboutsummaryrefslogtreecommitdiff
path: root/src/link.cpp
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2019-08-20 19:09:52 -0400
committerAndrew Kelley <andrew@ziglang.org>2019-08-20 19:09:52 -0400
commit5f3d59f0ac78e01bd50419dab54d7fcbae15f17c (patch)
tree59313f6debbbaafc18dafc5dfed6a479cede8cef /src/link.cpp
parentc39bb3ebc49096af45f3a69d4742e5f4d50cab62 (diff)
parent3b5a8858c29582daf37856534abe150b568a7bb7 (diff)
downloadzig-5f3d59f0ac78e01bd50419dab54d7fcbae15f17c.tar.gz
zig-5f3d59f0ac78e01bd50419dab54d7fcbae15f17c.zip
Merge branch 'master' into llvm9
Diffstat (limited to 'src/link.cpp')
-rw-r--r--src/link.cpp2
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");