Merge branch 'master' into llvm9

This commit is contained in:
Andrew Kelley
2019-08-20 19:09:52 -04:00
29 changed files with 728 additions and 208 deletions

View File

@@ -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");