From 5f3852511279958dada120319d79b2c292c583ec Mon Sep 17 00:00:00 2001 From: Yong Zhao Date: Thu, 13 Dec 2018 17:52:46 -0500 Subject: [PATCH] Add -fPIC flag when building sp3 library This will support the sp3 library built on one gcc version to be compatible with another gcc version. Change-Id: If67714bd63376dc781c56ed025be335fe54b2ba5 Signed-off-by: Yong Zhao [ROCm/ROCR-Runtime commit: 81b8815e1a0a153454b9031deffcb82aac81a0ef] --- .../tests/kfdtest/sp3/lib_helper/CMakeLists_sp3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/rocr-runtime/tests/kfdtest/sp3/lib_helper/CMakeLists_sp3.txt b/projects/rocr-runtime/tests/kfdtest/sp3/lib_helper/CMakeLists_sp3.txt index bb822e7beb..54a6f3f4bd 100644 --- a/projects/rocr-runtime/tests/kfdtest/sp3/lib_helper/CMakeLists_sp3.txt +++ b/projects/rocr-runtime/tests/kfdtest/sp3/lib_helper/CMakeLists_sp3.txt @@ -68,7 +68,7 @@ message( STATUS "PROJECT_SOURCE_DIR:" ${PROJECT_SOURCE_DIR} ) # message(STATUS "${file}") #endforeach() -set ( CMAKE_C_FLAGS "-DSP3_STATIC_LIB -Wno-error -DPUBLIC_RELEASE -DLITTLEENDIAN_CPU" ) +set ( CMAKE_C_FLAGS "-DSP3_STATIC_LIB -Wno-error -DPUBLIC_RELEASE -DLITTLEENDIAN_CPU -fPIC" ) add_library(amdsp3 ${SRC_FILES})