Skip to content
Snippets Groups Projects
link-execinfo.patch 1.59 KiB
Newer Older
add execinfo library
---
--- a/opencl/test/unit_test/offline_compiler/CMakeLists.txt
+++ b/opencl/test/unit_test/offline_compiler/CMakeLists.txt
@@ -87,7 +87,7 @@
 )
 target_compile_definitions(ocloc_tests PUBLIC MOCKABLE_VIRTUAL=virtual $<TARGET_PROPERTY:ocloc_lib,INTERFACE_COMPILE_DEFINITIONS>)
 
-target_link_libraries(ocloc_tests gmock-gtest)
+target_link_libraries(ocloc_tests gmock-gtest execinfo)
 
 if(WIN32)
     target_link_libraries(ocloc_tests dbghelp)

--- a/opencl/test/unit_test/offline_compiler/segfault_test/CMakeLists.txt
+++ b/opencl/test/unit_test/offline_compiler/segfault_test/CMakeLists.txt
@@ -38,7 +38,7 @@
   target_link_libraries(ocloc_segfault_test dbghelp)
 endif()
 if(UNIX)
-  target_link_libraries(ocloc_segfault_test dl pthread)
+  target_link_libraries(ocloc_segfault_test dl pthread execinfo)
 endif()
 
 set(CLOC_SEGFAULT_TEST_INCLUDES

--- a/shared/offline_compiler/source/CMakeLists.txt
+++ b/shared/offline_compiler/source/CMakeLists.txt
@@ -139,7 +139,7 @@
 endif()
 
 if(UNIX)
-  target_link_libraries(${OCLOC_NAME}_lib dl pthread)
+  target_link_libraries(${OCLOC_NAME}_lib dl pthread execinfo)
 endif()
 
 set(CLOC_LIB_SRCS_LIB ${CLOC_LIB_SRCS_LIB} PARENT_SCOPE)

--- a/opencl/source/CMakeLists.txt
+++ b/opencl/source/CMakeLists.txt
@@ -81,7 +81,7 @@
   )
   target_compile_definitions(${NEO_STATIC_LIB_NAME} PRIVATE OGL=1)
 else()
-  set(IGDRCL_EXTRA_LIBS dl pthread)
+  set(IGDRCL_EXTRA_LIBS dl pthread execinfo igc)
   target_include_directories(${NEO_STATIC_LIB_NAME} PUBLIC
     ${NEO_SHARED_DIRECTORY}/os_interface/linux
     ${NEO_SOURCE_DIR}/opencl/source/os_interface/linux