From 2bb2c318e9ddf0eec8313d43be97dfe20b16e127 Mon Sep 17 00:00:00 2001 From: hedaoyuan Date: Fri, 20 Oct 2017 15:09:13 +0800 Subject: [PATCH] Change the name of the export.map to paddle_capi.map which need to be released in each version. --- paddle/capi/CMakeLists.txt | 4 ++-- paddle/capi/export.sym | 0 paddle/capi/{export.map => paddle_capi.map} | 0 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 paddle/capi/export.sym rename paddle/capi/{export.map => paddle_capi.map} (100%) diff --git a/paddle/capi/CMakeLists.txt b/paddle/capi/CMakeLists.txt index 4ff82bafad8..e767856d501 100644 --- a/paddle/capi/CMakeLists.txt +++ b/paddle/capi/CMakeLists.txt @@ -58,8 +58,7 @@ cc_library(paddle_capi_layers DEPS paddle_function paddle_gserver) # Link the shared library for inference if(NOT IOS) - set(LINK_FLAGS " -Wl,--retain-symbols-file ${CMAKE_CURRENT_SOURCE_DIR}/export.sym -Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/export.map") - # TODO: merge mkl into paddle_capi_shared + set(LINK_FLAGS "-Wl,--version-script ${CMAKE_CURRENT_SOURCE_DIR}/paddle_capi.map") add_library(paddle_capi_shared SHARED ${CAPI_SOURCES}) set_target_properties(paddle_capi_shared PROPERTIES LINK_FLAGS "${LINK_FLAGS}") target_include_directories(paddle_capi_shared PUBLIC ${CMAKE_CURRENT_BINARY_DIR}) @@ -68,6 +67,7 @@ endif() # install library & headers. install(FILES ${CAPI_HEADERS} DESTINATION include/paddle) +install(FILES paddle_capi.map DESTINATION include/paddle) install(FILES ${CMAKE_CURRENT_BINARY_DIR}/config.h DESTINATION include/paddle) if(ANDROID) install(TARGETS paddle_capi_whole paddle_capi_engine paddle_capi_layers paddle_capi_shared diff --git a/paddle/capi/export.sym b/paddle/capi/export.sym deleted file mode 100644 index e69de29bb2d..00000000000 diff --git a/paddle/capi/export.map b/paddle/capi/paddle_capi.map similarity index 100% rename from paddle/capi/export.map rename to paddle/capi/paddle_capi.map -- GitLab