We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1bd9fe8 commit 7f93defCopy full SHA for 7f93def
paddle/contrib/inference/CMakeLists.txt
@@ -45,6 +45,10 @@ endfunction(inference_api_test)
45
cc_library(paddle_inference_api
46
SRCS paddle_inference_api.cc paddle_inference_api_impl.cc
47
DEPS ${FLUID_CORE_MODULES} ${GLOB_OP_LIB})
48
+if(NOT APPLE)
49
+ set(LINK_FLAGS "-Wl,--retain-symbols-file ${CMAKE_CURRENT_SOURCE_DIR}/paddle_inference_api.sym")
50
+ set_target_properties(paddle_inference_api PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
51
+endif()
52
53
# Here the shared library doesn't depend on other fluid libraries, or double free will occur.
54
cc_library(paddle_inference_api_shared SHARED
paddle/contrib/inference/paddle_inference_api.sym
@@ -0,0 +1 @@
1
+*paddle*
0 commit comments