projects
/
platform
/
upstream
/
OpenCL-ICD-Loader.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4fdf7bc
)
Add force fPIC option
author
TP Boudreau
<tpboudreau@gmail.com>
Mon, 25 May 2020 15:03:30 +0000
(15:03 +0000)
committer
Ben Ashbaugh
<ben.ashbaugh@intel.com>
Fri, 9 Oct 2020 00:31:24 +0000
(17:31 -0700)
CMakeLists.txt
patch
|
blob
|
history
diff --git
a/CMakeLists.txt
b/CMakeLists.txt
index
db0346f
..
05455af
100644
(file)
--- a/
CMakeLists.txt
+++ b/
CMakeLists.txt
@@
-105,6
+105,9
@@
else()
target_link_libraries (OpenCL ${CMAKE_THREAD_LIBS_INIT})
else ()
set_target_properties (OpenCL PROPERTIES LINK_FLAGS "-Wl,--version-script -Wl,${CMAKE_CURRENT_SOURCE_DIR}/loader/linux/icd_exports.map")
+ if (OPENCL_ICD_LOADER_PIC)
+ set_target_properties(OpenCL PROPERTIES POSITION_INDEPENDENT_CODE ON)
+ endif ()
target_link_libraries (OpenCL ${CMAKE_THREAD_LIBS_INIT})
endif ()
endif ()