Add extra linker flags to the shared library build

Change-Id: I19e569d566fb5e25e343e364a3053a3f12659361
This commit is contained in:
scchan
2016-11-17 18:44:42 -05:00
committato da Maneesh Gupta
parent 1a67766dc5
commit 04049feaf4
+1
Vedi File
@@ -191,6 +191,7 @@ if(HIP_PLATFORM STREQUAL "hcc")
elseif(${HIP_LIB_TYPE} EQUAL 1)
add_library(hip_hcc STATIC ${SOURCE_FILES})
else()
set(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -L${HCC_HOME}/lib -lmcwamp -Wl,-Bsymbolic")
add_library(hip_hcc SHARED ${SOURCE_FILES})
endif()