aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-18 13:05:50 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2021-11-18 13:08:33 +0100
commit7cfded894f91b82fa2ecf7e13c3a871b1c4b641b (patch)
treea038cc9f51e2917ab0c7d3581023276a4410d221 /src
parent659cc9c15c82deab9e274e8853411c148ee62b6e (diff)
downloadlibayatana-indicator-7cfded894f91b82fa2ecf7e13c3a871b1c4b641b.tar.gz
libayatana-indicator-7cfded894f91b82fa2ecf7e13c3a871b1c4b641b.tar.bz2
libayatana-indicator-7cfded894f91b82fa2ecf7e13c3a871b1c4b641b.zip
src/{CMakeLists.txt,indicator.symbols}: Don't export private symbols. Immitate symbol exports as previously done with libtool.
Fixes https://github.com/AyatanaIndicators/libayatana-indicator/issues/59
Diffstat (limited to 'src')
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/indicator.symbols6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 9d3fb22..9236617 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -140,6 +140,7 @@ target_compile_definitions("${ayatana_indicator_gtkver}" PUBLIC DG_LOG_DOMAIN="l
target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${PROJECT_DEPS_INCLUDE_DIRS})
target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_include_directories("${ayatana_indicator_gtkver}" PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
+target_link_options("${ayatana_indicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/indicator.symbols")
target_link_libraries("${ayatana_indicator_gtkver}" ${PROJECT_DEPS_LIBRARIES} ${EXTRA_LIBS})
add_dependencies("${ayatana_indicator_gtkver}" "src-generated")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_indicator_gtkver}.so" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
diff --git a/src/indicator.symbols b/src/indicator.symbols
new file mode 100644
index 0000000..1cb68cd
--- /dev/null
+++ b/src/indicator.symbols
@@ -0,0 +1,6 @@
+{
+ global: indicator_*;
+ INDICATOR_*;
+ ICON_SIZE*;
+ local: _indicator_*;
+};