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 7f93def commit 2238ea5Copy full SHA for 2238ea5
paddle/fluid/inference/CMakeLists.txt
@@ -13,6 +13,12 @@ endif()
13
14
# Create static library
15
cc_library(paddle_fluid DEPS ${fluid_modules} paddle_fluid_api)
16
+if(NOT APPLE)
17
+ # TODO(liuyiqu: Temporarily disable the link flag because it is not support on Mac.
18
+ set(LINK_FLAGS "-Wl,--retain-symbols-file ${CMAKE_CURRENT_SOURCE_DIR}/paddle_fluid.sym")
19
+ set_target_properties(paddle_fluid PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
20
+endif()
21
+
22
# Create shared library
23
cc_library(paddle_fluid_shared SHARED
24
SRCS io.cc
paddle/fluid/inference/paddle_fluid.sym
@@ -0,0 +1 @@
1
+*paddle*
0 commit comments