From 2f9da4ea4715571636e3ab86e020e62690f686f6 Mon Sep 17 00:00:00 2001 From: Igor Tarasov Date: Wed, 27 May 2020 14:42:43 +0300 Subject: [android, build] Move to LLD linker. --- platform/android/android.cmake | 7 +++++-- 1 file 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 $<$:-Oz> target_link_libraries( mbgl-compiler-options INTERFACE - $<$:-O2> + $<$:-Wl,--gc-sections> $<$:-Wl,--icf=all> $<$:-flto> - $<$:-fuse-ld=gold> + $<$:-fuse-ld=lld> + $<$:-Wl,--lto-new-pass-manager> + $<$:-Wl,--pack-dyn-relocs=android> + $<$:-Wl,--lto-O3> ) target_sources( -- cgit v1.2.1