[Pkg-voip-commits] [bctoolbox] 09/57: fix compilation issue (jehan)

daniel at gnoutcheff.name daniel at gnoutcheff.name
Thu Mar 30 04:31:31 UTC 2017


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

gnoutchd-guest pushed a commit to branch debian/sid
in repository bctoolbox.

commit 13c732cb058862b6ee271b3a0850041e2ef88857
Author: Jehan Monnier <jehan.monnier at linphone.org>
Date:   Thu Nov 17 18:20:41 2016 +0100

    fix compilation issue (jehan)
---
 CMakeLists.txt     | 1 +
 src/CMakeLists.txt | 6 ++++++
 2 files changed, 7 insertions(+)

diff --git a/CMakeLists.txt b/CMakeLists.txt
index aa35e24..29b2f8b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -197,6 +197,7 @@ else()
 endif()
 
 check_library_exists("rt" "clock_gettime" "" HAVE_LIBRT)
+check_library_exists("dl" "dladdr" "" HAVE_LIBDL)
 
 add_subdirectory(include)
 add_subdirectory(src)
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index 613209e..2a99bbf 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -63,6 +63,9 @@ if(ENABLE_STATIC)
 	if(HAVE_LIBRT)
 		target_link_libraries(bctoolbox-static rt)
 	endif()
+	if(HAVE_LIBDL)
+		target_link_libraries(bctoolbox-static dl)
+	endif()
 	if(BCUNIT_FOUND)
 		add_library(bctoolbox-tester-static STATIC ${BCTOOLBOX_TESTER_SOURCE_FILES})
 		set_target_properties(bctoolbox-tester-static PROPERTIES OUTPUT_NAME bctoolbox-tester)
@@ -97,6 +100,9 @@ if(ENABLE_SHARED)
 	if(HAVE_LIBRT)
 		target_link_libraries(bctoolbox PRIVATE rt)
 	endif()
+	if(HAVE_LIBDL)
+		target_link_libraries(bctoolbox PRIVATE dl)
+	endif()
 	if(BCUNIT_FOUND)
 		add_library(bctoolbox-tester SHARED ${BCTOOLBOX_TESTER_SOURCE_FILES})
 		set_target_properties(bctoolbox-tester PROPERTIES LINKER_LANGUAGE "CXX")

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/bctoolbox.git



More information about the Pkg-voip-commits mailing list