summaryrefslogtreecommitdiffstats
path: root/build/toolchain/gcc_toolchain.gni
diff options
context:
space:
mode:
authoryyanagisawa <yyanagisawa@chromium.org>2015-01-28 16:34:44 -0800
committerCommit bot <commit-bot@chromium.org>2015-01-29 00:35:30 +0000
commita2ed43445333a1f317e54c16ffda5b69e0786e39 (patch)
tree9ca00b6bb8c1bde7fd24e0afbdaa9b4d1be3bce6 /build/toolchain/gcc_toolchain.gni
parent70091e75f4af58bff364d591269bc3b465e9b4d8 (diff)
downloadchromium_src-a2ed43445333a1f317e54c16ffda5b69e0786e39.zip
chromium_src-a2ed43445333a1f317e54c16ffda5b69e0786e39.tar.gz
chromium_src-a2ed43445333a1f317e54c16ffda5b69e0786e39.tar.bz2
Should use sofile instead of soname.
If soname is used here, nm cannot find the file if non-default toolchain is used. Review URL: https://codereview.chromium.org/884663002 Cr-Commit-Position: refs/heads/master@{#313639}
Diffstat (limited to 'build/toolchain/gcc_toolchain.gni')
-rw-r--r--build/toolchain/gcc_toolchain.gni2
1 files changed, 1 insertions, 1 deletions
diff --git a/build/toolchain/gcc_toolchain.gni b/build/toolchain/gcc_toolchain.gni
index cec9b08..5cca299 100644
--- a/build/toolchain/gcc_toolchain.gni
+++ b/build/toolchain/gcc_toolchain.gni
@@ -138,7 +138,7 @@ template("gcc_toolchain") {
temporary_tocname = sofile + ".tmp"
link_command =
"$ld -shared {{ldflags}} -o $sofile -Wl,-soname=$soname @$rspfile"
- toc_command = "{ readelf -d $sofile | grep SONAME ; nm -gD -f p $soname | cut -f1-2 -d' '; } > $temporary_tocname"
+ toc_command = "{ readelf -d $sofile | grep SONAME ; nm -gD -f p $sofile | cut -f1-2 -d' '; } > $temporary_tocname"
replace_command = "if ! cmp -s $temporary_tocname $tocfile; then mv $temporary_tocname $tocfile; fi"
command = "$link_command && $toc_command && $replace_command"