diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2017-03-13 16:54:02 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2017-03-14 08:14:08 -0700 |
commit | 78d6d07d57d8b2f9a5aa25f9f84cc18b6d3b90e6 (patch) | |
tree | 25ccbfb2923060c436950fb208633234f5e33808 /platform/android/config.cmake | |
parent | e3cc5ddfddf991369f088a02cb278e5fac50d0ae (diff) | |
download | qtlocation-mapboxgl-78d6d07d57d8b2f9a5aa25f9f84cc18b6d3b90e6.tar.gz |
[android] Link with a version script to restrict symbol visibility
Diffstat (limited to 'platform/android/config.cmake')
-rw-r--r-- | platform/android/config.cmake | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/platform/android/config.cmake b/platform/android/config.cmake index 3dd8e7f67d..fdf03b4ec8 100644 --- a/platform/android/config.cmake +++ b/platform/android/config.cmake @@ -248,6 +248,7 @@ target_compile_options(mapbox-gl target_link_libraries(mapbox-gl PUBLIC mbgl-core PUBLIC -Wl,--gc-sections + PUBLIC -Wl,--version-script=${CMAKE_SOURCE_DIR}/platform/android/version-script ) # Create a stripped version of the library and copy it to the JNIDIR. @@ -331,6 +332,7 @@ target_compile_options(example-custom-layer target_link_libraries(example-custom-layer PRIVATE mapbox-gl PUBLIC -Wl,--gc-sections + PUBLIC -Wl,--version-script=${CMAKE_SOURCE_DIR}/platform/android/version-script ) add_custom_command(TARGET example-custom-layer POST_BUILD |