Index: build/toolchain/gcc_toolchain.gni |
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni |
index 3b3d41381062c1689dd7f94ad240db8e15134d6d..15ecb7e3354019fb9394bf950f6bfdd55520576f 100644 |
--- a/build/toolchain/gcc_toolchain.gni |
+++ b/build/toolchain/gcc_toolchain.gni |
@@ -106,7 +106,7 @@ template("gcc_toolchain") { |
# TODO(cjhopman): There needs to be a way for gn to correctly figure out |
# the outputs of a solink command. |
- link_command = "$ld -shared \$ldflags -o \$lib -Wl,-soname=\$soname $rspfile_content" |
+ link_command = "$ld -shared \$ldflags -o \$lib -Wl,-soname=\$soname @\$rspfile" |
toc_command = "{ readelf -d \${lib} | grep SONAME ; nm -gD -f p \${lib} | cut -f1-2 -d' '; } > \${lib}.tmp" |
replace_command = "if ! cmp -s \${lib}.tmp \${lib}.TOC; then mv \${lib}.tmp \${lib}.TOC; fi" |
command = "$link_command && $toc_command && $replace_command" |