summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Tarasov <igor.tarasov@mapbox.com>2020-05-27 14:42:43 +0300
committerIgor Tarasov <igor.tarasov@mapbox.com>2020-05-27 14:42:43 +0300
commit2f9da4ea4715571636e3ab86e020e62690f686f6 (patch)
treee8ee4ee5d436d010ddda2ecef6e5d1bd172b1a15
parentd4af66e14f50bc11e31f4d35326ba4999c51ab9d (diff)
downloadqtlocation-mapboxgl-upstream/tarigo_move_to_lld.tar.gz
[android, build] Move to LLD linker.upstream/tarigo_move_to_lld
-rw-r--r--platform/android/android.cmake7
1 files changed, 5 insertions, 2 deletions
diff --git a/platform/android/android.cmake b/platform/android/android.cmake
index 625bf3a172..608e0ace43 100644
--- a/platform/android/android.cmake
+++ b/platform/android/android.cmake
@@ -21,10 +21,13 @@ target_compile_options(mbgl-compiler-options INTERFACE $<$<CONFIG:Release>:-Oz>
target_link_libraries(
mbgl-compiler-options
INTERFACE
- $<$<CONFIG:Release>:-O2>
+ $<$<CONFIG:Release>:-Wl,--gc-sections>
$<$<CONFIG:Release>:-Wl,--icf=all>
$<$<CONFIG:Release>:-flto>
- $<$<CONFIG:Release>:-fuse-ld=gold>
+ $<$<CONFIG:Release>:-fuse-ld=lld>
+ $<$<CONFIG:Release>:-Wl,--lto-new-pass-manager>
+ $<$<CONFIG:Release>:-Wl,--pack-dyn-relocs=android>
+ $<$<CONFIG:Release>:-Wl,--lto-O3>
)
target_sources(