Skip to content

Commit 9a5562a

Browse files
authored
Merge pull request #4963 from hedaoyuan/inference
Change the name of the export.map to paddle_capi.map which need to be…
2 parents 09c0c82 + 2bb2c31 commit 9a5562a

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

paddle/capi/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,7 @@ cc_library(paddle_capi_layers DEPS paddle_function paddle_gserver)
5858

5959
# Link the shared library for inference
6060
if(NOT IOS)
61-
set(LINK_FLAGS " -Wl,--retain-symbols-file ${CMAKE_CURRENT_SOURCE_DIR}/export.sym -Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/export.map")
62-
# TODO: merge mkl into paddle_capi_shared
61+
set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_capi.map")
6362
add_library(paddle_capi_shared SHARED ${CAPI_SOURCES})
6463
set_target_properties(paddle_capi_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}")
6564
target_include_directories(paddle_capi_shared PUBLIC ${CMAKE_CURRENT_BINARY_DIR})
@@ -68,6 +67,7 @@ endif()
6867

6968
# install library & headers.
7069
install(FILES ${CAPI_HEADERS} DESTINATION include/paddle)
70+
install(FILES paddle_capi.map DESTINATION include/paddle)
7171
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h DESTINATION include/paddle)
7272
if(ANDROID)
7373
install(TARGETS paddle_capi_whole paddle_capi_engine paddle_capi_layers paddle_capi_shared

paddle/capi/export.sym

Whitespace-only changes.
File renamed without changes.

0 commit comments

Comments
 (0)