inference api symbol hidden

guochaorong-patch-1
tensor-tang 7 years ago
parent 436bb4500b
commit 4922074edc

@ -51,7 +51,7 @@ cc_library(paddle_inference_api_shared SHARED
SRCS paddle_inference_api.cc paddle_inference_api_impl.cc)
set_target_properties(paddle_inference_api_shared PROPERTIES OUTPUT_NAME paddle_inference_api)
if(NOT APPLE)
set(LINK_FLAGS "-fPIC -fvisibility=hidden")
set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_inference_api.map")
set_target_properties(paddle_inference_api_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
endif()

@ -0,0 +1,6 @@
{
global:
*paddle*;
local:
*;
};
Loading…
Cancel
Save