Commit 02d3c5b9 authored by Peter Collingbourne's avatar Peter Collingbourne Committed by Commit Bot

Also pass --hash-style=gnu when building the android_webview libmonochrome.so.

Shrinks the apk size by another 12kb.

Bug: 742525
Change-Id: I97e889cca1adb52da69490c57094565121d0b52a
Reviewed-on: https://chromium-review.googlesource.com/970083
Commit-Queue: Richard Coles <torne@chromium.org>
Reviewed-by: default avataragrieve <agrieve@chromium.org>
Reviewed-by: default avatarRichard Coles <torne@chromium.org>
Cr-Commit-Position: refs/heads/master@{#544361}
parent 7bf47e0b
......@@ -424,6 +424,15 @@ if (android_64bit_target_cpu) {
if (use_lld) {
configs += [ "//build/config/android:lld_pack_relocations" ]
}
if (target_cpu != "mipsel" && target_cpu != "mips64el") {
# .gnu.hash support added in Android M. Without this flag, library will also
# contain an unused .hash section. (http://crbug.com/742525#c28)
# Not to be used for MIPS arhitecture since MIPS does not
# support hashstyle gnu: http://crbug.com/811306
ldflags = [ "-Wl,--hash-style=gnu" ]
}
public_configs = extra_chrome_shared_library_configs
deps += extra_chrome_shared_library_deps
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment