aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/session
diff options
context:
space:
mode:
authorJosé Bollo <jose.bollo@iot.bzh>2016-05-18 17:29:26 +0200
committerJosé Bollo <jose.bollo@iot.bzh>2016-05-18 17:29:26 +0200
commit9481b4f2960c560ec8297bdc37d8014230072a5c (patch)
treeb076d389746ae8e33f68855146fa5c58318764c4 /plugins/session
parentceb2e567b5f26ff148fbc0e9526f7e7e99464000 (diff)
improves the build system
Change-Id: Idad84e88cd8c21d111ce7ed44340f6d2b0fccb37 Signed-off-by: José Bollo <jose.bollo@iot.bzh>
Diffstat (limited to 'plugins/session')
-rw-r--r--plugins/session/CMakeLists.txt5
-rw-r--r--plugins/session/export.map1
2 files changed, 5 insertions, 1 deletions
diff --git a/plugins/session/CMakeLists.txt b/plugins/session/CMakeLists.txt
index ab0596e6..e13a16b3 100644
--- a/plugins/session/CMakeLists.txt
+++ b/plugins/session/CMakeLists.txt
@@ -1,6 +1,9 @@
ADD_LIBRARY(token-api MODULE token-api.c)
-SET_TARGET_PROPERTIES(token-api PROPERTIES PREFIX "")
+SET_TARGET_PROPERTIES(token-api PROPERTIES
+ PREFIX ""
+ LINK_FLAGS "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/export.map"
+)
TARGET_LINK_LIBRARIES(token-api ${link_libraries})
INCLUDE_DIRECTORIES(${include_dirs})
INSTALL(TARGETS token-api
diff --git a/plugins/session/export.map b/plugins/session/export.map
new file mode 100644
index 00000000..e2da85ca
--- /dev/null
+++ b/plugins/session/export.map
@@ -0,0 +1 @@
+{ global: pluginAfbV1Register; local: *; };