authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-19 12:32:30-04:00
committergravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2019-08-19 12:33:36-04:00
log3f7f52003690ccee8a2a33e91258428e22761492
tree3467bbf1f913f2c571895164fbd67578bce33edc
parent5a0275c247730040af91666518a6aa3f518e6905
signaturelock-open Commit is signed but in an unrecognized format.

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

closes #3093

1 files changed, 1 insertions(+), 1 deletions(-)

src/link.cpp+1-1
......@@ -1753,7 +1753,7 @@ static void construct_linker_job_elf(LinkJob *lj) {
17531753
17541754
17551755 // libc dep
1756 if (g->libc_link_lib != nullptr) {
1756 if (g->libc_link_lib != nullptr && g->out_type != OutTypeObj) {
17571757 if (g->libc != nullptr) {
17581758 if (!g->have_dynamic_link) {
17591759 lj->args.append("--start-group");