Move DSO dependencies inside the group.
authorMitch Phillips <31459023+hctim@users.noreply.github.com>
Tue, 26 May 2020 22:06:04 +0000 (15:06 -0700)
committerMitch Phillips <31459023+hctim@users.noreply.github.com>
Tue, 9 Jun 2020 20:01:40 +0000 (13:01 -0700)
llvm/utils/gn/build/toolchain/BUILD.gn

index 86e95d3..30d3cea 100644 (file)
@@ -88,7 +88,7 @@ template("unix_toolchain") {
       if (current_os == "mac") {
         command = "$ld {{ldflags}} -o $outfile {{inputs}} {{libs}}"
       } else {
-        command = "$ld {{ldflags}} -o $outfile -Wl,--start-group {{inputs}} -Wl,--end-group {{libs}}"
+        command = "$ld {{ldflags}} -o $outfile -Wl,--start-group {{inputs}} {{libs}} -Wl,--end-group"
       }
       description = "LINK $outfile"
       outputs = [ outfile ]