From 467fa30f05eeed8a47dd582b3c7751ebaa58bf94 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20K=C3=A4fer?= Date: Fri, 2 Dec 2016 10:58:40 +0100 Subject: [android] use Identical Code Folding to reduce binary size --- platform/android/config.cmake | 3 +++ 1 file changed, 3 insertions(+) (limited to 'platform/android') diff --git a/platform/android/config.cmake b/platform/android/config.cmake index ff02750450..4901eda5e5 100644 --- a/platform/android/config.cmake +++ b/platform/android/config.cmake @@ -173,6 +173,7 @@ macro(mbgl_platform_core) PUBLIC -latomic PUBLIC -lz PUBLIC -Wl,--gc-sections + PUBLIC -Wl,--icf=safe ) endmacro() @@ -196,6 +197,7 @@ target_compile_options(mapbox-gl target_link_libraries(mapbox-gl PUBLIC mbgl-core PUBLIC -Wl,--gc-sections + PUBLIC -Wl,--icf=safe ) # Create a stripped version of the library and copy it to the JNIDIR. @@ -282,6 +284,7 @@ target_compile_options(example-custom-layer target_link_libraries(example-custom-layer PRIVATE mapbox-gl PUBLIC -Wl,--gc-sections + PUBLIC -Wl,--icf=safe ) add_custom_command(TARGET example-custom-layer POST_BUILD -- cgit v1.2.1