| Index: build/toolchain/android/BUILD.gn
|
| diff --git a/build/toolchain/android/BUILD.gn b/build/toolchain/android/BUILD.gn
|
| index 78a6c9f97bf77d83ca6c60f590849983708ac41b..c927b37f0c91c18bbcb085de77dd1d79533157ee 100644
|
| --- a/build/toolchain/android/BUILD.gn
|
| +++ b/build/toolchain/android/BUILD.gn
|
| @@ -48,6 +48,12 @@ template("android_gcc_toolchain") {
|
|
|
| toolchain_os = "android"
|
| toolchain_cpu_arch = invoker.toolchain_cpu_arch
|
| +
|
| + android_strip = "${tool_prefix}strip"
|
| + mkdir_command = "mkdir -p lib.stripped"
|
| + strip_command = "$android_strip --strip-unneeded -o lib.stripped/\$soname.tmp \$lib"
|
| + replace_command = "if ! cmp -s lib.stripped/\${soname}.tmp lib.stripped/\${soname}; then mv lib.stripped/\${soname}.tmp lib.stripped/\${soname}; fi"
|
| + postsolink = "$mkdir_command && $strip_command && $replace_command"
|
| }
|
| }
|
|
|
|
|