From 52ce9893a71311c46d4e9ba14ef2a98b3b715e36 Mon Sep 17 00:00:00 2001
From: fujuntang <fujuntang@smartai.com>
Date: 星期日, 26 九月 2021 21:57:24 +0800
Subject: [PATCH] trival version: need confirm whether protobuf can run weil yet.
---
src/CMakeLists.txt | 1 +
src/exported_symbols | 4 ++++
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 276c547..f2ed570 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -5,6 +5,7 @@
# to the source code
configure_file(bus_config.h.in bus_config.h)
+set(CMAKE_SHARED_LINKER_FLAGS ${CMAKE_SHARED_LINKER_FLAGS} "-Wl,--version-script=${CMAKE_CURRENT_SOURCE_DIR}/exported_symbols")
#set_property(TARGET shm_queue PROPERTY POSITION_INDEPENDENT_CODE ON)
add_compile_options(-fPIC)
#target_compile_options(shm_queue PRIVATE -fPIC)
diff --git a/src/exported_symbols b/src/exported_symbols
new file mode 100644
index 0000000..af94438
--- /dev/null
+++ b/src/exported_symbols
@@ -0,0 +1,4 @@
+VERS_1.0 {
+local:
+ *proto*;
+};
--
Gitblit v1.8.0