zig

fork of https://codeberg.org/ziglang/zig
Log | Files | Refs | README | LICENSE

commit 3f7f52003690ccee8a2a33e91258428e22761492 (tree)
parent 5a0275c247730040af91666518a6aa3f518e6905
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Mon, 19 Aug 2019 12:32:30 -0400

don't put libc on the elf linker line for objects

closes #3093

Diffstat:
Msrc/link.cpp | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/link.cpp b/src/link.cpp @@ -1753,7 +1753,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");