Install grpc lib to rdc folder
Install the grpc lib to rdc/grpc/lib and add miss libraries. Add “--no-as-needed” and all extra grpc libraries in rdci/rdcd as RUNPATH will only search direct dependencies. Change-Id: I596acb2eb3a7228d703e79db64699bc20d0e7c09
This commit is contained in:
@@ -65,6 +65,15 @@ set(SRC_DIR "${PROJECT_SOURCE_DIR}/rdc_libs")
|
||||
set(RDC_LIB_INC_DIR "${PROJECT_SOURCE_DIR}/include")
|
||||
set(COMMON_DIR "${PROJECT_SOURCE_DIR}/common")
|
||||
|
||||
## Set RUNPATH if ROCM_RPATH is defined and passed by the environment
|
||||
## RUNPATH should help to run "rdcd" without the usage of ldconfig
|
||||
if (DEFINED ENV{ROCM_RPATH})
|
||||
set (LIB_RUNPATH "\$ORIGIN/../lib:\$ORIGIN/../lib64")
|
||||
set (CMAKE_SHARED_LINKER_FLAGS "-Wl,--enable-new-dtags -Wl,--no-as-needed -Wl,-z,origin")
|
||||
set (CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_RPATH}:${LIB_RUNPATH}")
|
||||
set (CMAKE_BUILD_WITH_INSTALL_RPATH TRUE)
|
||||
set (CMAKE_SKIP_BUILD_RPATH TRUE)
|
||||
endif()
|
||||
|
||||
################# Determine the library version #########################
|
||||
## Setup the SO version based on git tags.
|
||||
|
||||
Reference in New Issue
Block a user