[clfft] 02/06: d/p: add patch fixing libdl linkage

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Fri Jul 10 09:15:07 UTC 2015


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/sid
in repository clfft.

commit b8982894dbdd3469282828bd980e6e8a83813402
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date:   Fri Jul 10 09:34:07 2015 +0100

    d/p: add patch fixing libdl linkage
---
 debian/patches/fix-libdl-linkage.patch | 34 ++++++++++++++++++++++++++++++++++
 debian/patches/series                  |  1 +
 2 files changed, 35 insertions(+)

diff --git a/debian/patches/fix-libdl-linkage.patch b/debian/patches/fix-libdl-linkage.patch
new file mode 100644
index 0000000..f955726
--- /dev/null
+++ b/debian/patches/fix-libdl-linkage.patch
@@ -0,0 +1,34 @@
+Description: fix missing linkage with libdl.
+ Add missing linkage with libdl in libclfft.
+Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
+Forwarded: no
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/src/library/CMakeLists.txt
++++ b/src/library/CMakeLists.txt
+@@ -46,6 +46,16 @@
+ 
+ set( clFFT.Files ${clFFT.Source} ${clFFT.Headers} )
+ 
++set( DL_LIB "" )
++if( WIN32 )
++	add_definitions( "/D_CONSOLE" )
++elseif( APPLE )
++	set( CMAKE_CXX_FLAGS "-std=c++11 -stdlib=libc++ ${CMAKE_CXX_FLAGS}" )	
++else( )
++	# To use the dlopen() and dlclose() functions, we should link with libdl
++	set( DL_LIB "-ldl" )
++endif( )
++
+ # For a rainy day, add pre-compiled header support
+ #if( MSVC )
+ #	if (USE_MSVC_PCH)
+@@ -79,7 +89,7 @@
+ else()
+   add_library( clFFT STATIC ${clFFT.Files} )
+ endif()
+-target_link_libraries( clFFT ${OPENCL_LIBRARIES} )
++target_link_libraries( clFFT ${OPENCL_LIBRARIES} ${DL_LIB} )
+ 
+ set_target_properties( clFFT PROPERTIES VERSION ${CLFFT_VERSION} )
+ set_target_properties( clFFT PROPERTIES SOVERSION ${CLFFT_SOVERSION} )
diff --git a/debian/patches/series b/debian/patches/series
index 2714648..8c62be6 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -3,3 +3,4 @@ fix-doxygen-settings.patch
 fix-client-name.patch
 debian-enable-multiarch.patch
 disable-multilib-cflags.patch
+fix-libdl-linkage.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/clfft.git



More information about the debian-science-commits mailing list