diff options
| author | Tse <1@tse.gratis> | 2019-10-23 01:06:35 +0300 |
|---|---|---|
| committer | Andrew Kelley <andrew@ziglang.org> | 2019-10-30 21:21:58 -0400 |
| commit | 33cc2044811e41a74e3112fc0abcc5dc6fd34836 (patch) | |
| tree | 380b8a0e296e32fae4415035338ec268c1a1beaf /src/link.cpp | |
| parent | 7c7350345147c61e3e0873c3c4f233e351a3910a (diff) | |
| download | zig-33cc2044811e41a74e3112fc0abcc5dc6fd34836.tar.gz zig-33cc2044811e41a74e3112fc0abcc5dc6fd34836.zip | |
DragonFlyBSD support
Diffstat (limited to 'src/link.cpp')
| -rw-r--r-- | src/link.cpp | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/src/link.cpp b/src/link.cpp index 664e83e8b1..c115ffe2fd 100644 --- a/src/link.cpp +++ b/src/link.cpp @@ -1792,28 +1792,12 @@ static void construct_linker_job_elf(LinkJob *lj) { if (g->libc != nullptr) { if (!g->have_dynamic_link) { lj->args.append("--start-group"); - if (!target_is_android(g->zig_target)) { - lj->args.append("-lgcc"); - lj->args.append("-lgcc_eh"); - } lj->args.append("-lc"); lj->args.append("-lm"); lj->args.append("--end-group"); } else { - if (!target_is_android(g->zig_target)) { - lj->args.append("-lgcc"); - lj->args.append("--as-needed"); - lj->args.append("-lgcc_s"); - lj->args.append("--no-as-needed"); - } lj->args.append("-lc"); lj->args.append("-lm"); - if (!target_is_android(g->zig_target)) { - lj->args.append("-lgcc"); - lj->args.append("--as-needed"); - lj->args.append("-lgcc_s"); - lj->args.append("--no-as-needed"); - } } if (g->zig_target->os == OsFreeBSD) { |
