beignet-9999-libOpenCL.patch 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. --- ./benchmark/CMakeLists.txt~ 2014-04-30 18:19:34.000000000 +0100
  2. +++ ./benchmark/CMakeLists.txt 2014-04-30 18:26:23.314810046 +0100
  3. @@ -14,8 +14,8 @@
  4. ADD_LIBRARY(benchmarks SHARED ${ADDMATHFUNC} ${benchmark_sources})
  5. -#TARGET_LINK_LIBRARIES(benchmarks cl m ${OPENGL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
  6. -TARGET_LINK_LIBRARIES(benchmarks cl m)
  7. +#TARGET_LINK_LIBRARIES(benchmarks OpenCL m ${OPENGL_LIBRARIES} ${CMAKE_THREAD_LIBS_INIT})
  8. +TARGET_LINK_LIBRARIES(benchmarks OpenCL m)
  9. ADD_EXECUTABLE(benchmark_run benchmark_run.cpp)
  10. TARGET_LINK_LIBRARIES(benchmark_run benchmarks)
  11. --- ./src/CMakeLists.txt.orig 2016-09-13 07:17:44.212816930 +0100
  12. +++ ./src/CMakeLists.txt 2016-09-13 07:19:24.890382610 +0100
  13. @@ -156,10 +156,11 @@
  14. SET(CMAKE_SHARED_LINKER_FLAGS "${CMAKE_SHARED_LINKER_FLAGS} -Wl,-Bsymbolic,--allow-shlib-undefined")
  15. link_directories (${LLVM_LIBRARY_DIR} ${DRM_LIBDIR} ${OPENGL_LIBDIR} ${EGL_LIBDIR})
  16. -add_library(cl SHARED ${OPENCL_SRC})
  17. -ADD_DEPENDENCIES(cl ${GIT_SHA1})
  18. +add_library(OpenCL SHARED ${OPENCL_SRC})
  19. +set_target_properties(OpenCL PROPERTIES VERSION 1.0.0 SOVERSION 1)
  20. +ADD_DEPENDENCIES(OpenCL ${GIT_SHA1})
  21. target_link_libraries(
  22. - cl
  23. + OpenCL
  24. rt
  25. ${X11_LIBRARIES}
  26. ${XEXT_LIBRARIES}
  27. @@ -170,4 +171,4 @@
  28. ${CMAKE_DL_LIBS}
  29. ${OPENGL_LIBRARIES}
  30. ${EGL_LIBRARIES})
  31. -install (TARGETS cl LIBRARY DESTINATION ${BEIGNET_INSTALL_DIR})
  32. +install (TARGETS OpenCL LIBRARY DESTINATION ${BEIGNET_INSTALL_DIR})
  33. --- ./utests/CMakeLists.txt.orig 2016-09-13 07:17:44.212816930 +0100
  34. +++ ./utests/CMakeLists.txt 2016-09-13 07:20:18.640865315 +0100
  35. @@ -364,7 +364,7 @@
  36. ADD_LIBRARY(utests SHARED ${utests_sources})
  37. if (NOT_BUILD_STAND_ALONE_UTEST)
  38. - TARGET_LINK_LIBRARIES(utests cl m ${UTESTS_REQUIRED_GL_EGL_X11_LIB} ${CMAKE_THREAD_LIBS_INIT} ${UTESTS_REQUIRED_X11_LIB})
  39. + TARGET_LINK_LIBRARIES(utests OpenCL m ${UTESTS_REQUIRED_GL_EGL_X11_LIB} ${CMAKE_THREAD_LIBS_INIT} ${UTESTS_REQUIRED_X11_LIB})
  40. else()
  41. TARGET_LINK_LIBRARIES(utests ${OPENCL_LIBRARIES} m ${UTESTS_REQUIRED_GL_EGL_X11_LIB} ${CMAKE_THREAD_LIBS_INIT} ${UTESTS_REQUIRED_X11_LIB})
  42. endif()