aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-10 08:38:24 +0200
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-08-10 08:38:24 +0200
commitef6ee22a57be972a83cb27da3273eadb8cb52f0c (patch)
treee0355b93ce042603ecc750952dec8b2c47abaf7c
parent2a3ed016991d0461718ed89811e61aad9202566f (diff)
parent4d97676bb5ba1a7612aed36d219cbaa978adc90e (diff)
downloadlibayatana-appindicator-ef6ee22a57be972a83cb27da3273eadb8cb52f0c.tar.gz
libayatana-appindicator-ef6ee22a57be972a83cb27da3273eadb8cb52f0c.tar.bz2
libayatana-appindicator-ef6ee22a57be972a83cb27da3273eadb8cb52f0c.zip
Merge branch 'tari01-pr/limit-symbols'
Attributes GH PR #69: https://github.com/AyatanaIndicators/libayatana-appindicator/pull/69
-rw-r--r--src/CMakeLists.txt1
-rw-r--r--src/app-indicator.symbols6
2 files changed, 7 insertions, 0 deletions
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index b6ba839..ddbb45d 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -125,6 +125,7 @@ target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${PROJECT_DEP
target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
target_include_directories("${ayatana_appindicator_gtkver}" PUBLIC ${CMAKE_CURRENT_SOURCE_DIR})
target_link_libraries("${ayatana_appindicator_gtkver}" ${PROJECT_DEPS_LIBRARIES})
+target_link_options ("${ayatana_appindicator_gtkver}" PRIVATE "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/app-indicator.symbols")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_appindicator_gtkver}.so" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_appindicator_gtkver}.so.1" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/lib${ayatana_appindicator_gtkver}.so.1.0.0" DESTINATION "${CMAKE_INSTALL_FULL_LIBDIR}")
diff --git a/src/app-indicator.symbols b/src/app-indicator.symbols
new file mode 100644
index 0000000..6d1cf35
--- /dev/null
+++ b/src/app-indicator.symbols
@@ -0,0 +1,6 @@
+{
+ global: app_indicator_*;
+ local: _notification_*;
+ _generate_;
+ _application_;
+};