From: Andreas Beckmann Date: Sat, 13 Feb 2021 21:51:43 +0000 (+0100) Subject: [PATCH] stop building libllvmopencl.so which is no longer used since 0.14 X-Git-Tag: archive/raspbian/1.7-2+rpi1^2~14 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=888846c50a414d29e221e88c079fb8b83786bdd2;p=pocl.git [PATCH] stop building libllvmopencl.so which is no longer used since 0.14 Gbp-Pq: Name 1001-stop-building-libllvmopencl.so-which-is-no-longer-us.patch --- diff --git a/CMakeLists.txt b/CMakeLists.txt index b8ff138..5183b15 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -329,7 +329,7 @@ endif() # for libpocl.so set(POCL_INSTALL_PUBLIC_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}" CACHE PATH "POCL public libdir") -# for llvmopencl.so +# for libpocl-devices-*.so set(POCL_INSTALL_PRIVATE_LIBDIR "${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_LIBDIR}/pocl" CACHE PATH "POCL private libdir") # for pocl.icd diff --git a/lib/llvmopencl/CMakeLists.txt b/lib/llvmopencl/CMakeLists.txt index e2a546d..b0a1e56 100644 --- a/lib/llvmopencl/CMakeLists.txt +++ b/lib/llvmopencl/CMakeLists.txt @@ -100,39 +100,3 @@ endif(MSVC) #noinst_LTLIBRARIES = libllvmpasses.la add_library("llvmpasses" OBJECT ${LLVMPASSES_SOURCES}) harden("llvmpasses") - -# This creates a separate llvmopencl.so that is loaded to 'opt' -# for the pocl-workgroup version. -#pkglib_LTLIBRARIES = llvmopencl.la -add_library("llvmopencl" MODULE "$") -harden("llvmopencl") - -# not sure where other platforms get their library linkage list, probably there is -# way to make this more consistent on different platforms -if(MSVC) - target_link_libraries("llvmopencl" ${POCL_LLVM_LIBS}) -endif(MSVC) - -#target_link_libraries("llvmopencl" "${LLVM_SYSLIBS}") - -# TODO cmake should handle this, i might me missing something … -if(APPLE) - set(ADD_LD_FLAGS "-Wl,-undefined -Wl,dynamic_lookup ") -else() - set(ADD_LD_FLAGS "-Wl,-export-dynamic") -endif() - -# TODO ENABLE_EXPORTS -> Wl,export_dynamic -# http://www.cmake.org/cmake/help/v2.8.12/cmake.html#prop_tgt:ENABLE_EXPORTS -# http://www.cmake.org/pipermail/cmake/2011-November/047708.html -set_target_properties("llvmopencl" PROPERTIES LINK_FLAGS "${LLVM_LDFLAGS} ${ADD_LD_FLAGS}") -if(NOT APPLE) - set_target_properties("llvmopencl" PROPERTIES SOVERSION "${KERNEL_COMPILER_LIB_VERSION}" VERSION "${KERNEL_COMPILER_LIB_VERSION}") -endif() - -install(TARGETS "llvmopencl" - LIBRARY DESTINATION ${POCL_INSTALL_PRIVATE_LIBDIR} - COMPONENT "lib" - ARCHIVE DESTINATION ${POCL_INSTALL_PRIVATE_LIBDIR}/static - COMPONENT "dev" -)