| ... | @@ -1753,7 +1753,7 @@ static void construct_linker_job_elf(LinkJob *lj) { | ... | @@ -1753,7 +1753,7 @@ static void construct_linker_job_elf(LinkJob *lj) { |
| 1753 | | 1753 | |
| 1754 | | 1754 | |
| 1755 | // libc dep | 1755 | // libc dep |
| 1756 | if (g->libc_link_lib != nullptr) { | 1756 | if (g->libc_link_lib != nullptr && g->out_type != OutTypeObj) { |
| 1757 | if (g->libc != nullptr) { | 1757 | if (g->libc != nullptr) { |
| 1758 | if (!g->have_dynamic_link) { | 1758 | if (!g->have_dynamic_link) { |
| 1759 | lj->args.append("--start-group"); | 1759 | lj->args.append("--start-group"); |