aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Michał Górny <mgorny@gentoo.org> 2016-12-13 23:31:19 +0100
committerAvatar Saleem Abdulrasool <compnerd@compnerd.org> 2016-12-16 20:25:16 -0800
commit41c5a92518f6eff79e12abe9c891dd21316466b0 (patch)
treeda3decfc37e2221e23cada5371e4988fb47d61cc
parent1f569753403ddf5ef3c9281ca60139c6a084b638 (diff)
downloadpaludis-41c5a92518f6eff79e12abe9c891dd21316466b0.tar.gz
paludis-41c5a92518f6eff79e12abe9c891dd21316466b0.tar.xz
build: Add missing linkage between shared libraries
-rw-r--r--paludis/CMakeLists.txt8
-rw-r--r--paludis/args/CMakeLists.txt3
-rw-r--r--paludis/repositories/e/CMakeLists.txt2
-rw-r--r--paludis/selinux/CMakeLists.txt1
-rw-r--r--src/clients/cave/CMakeLists.txt1
5 files changed, 15 insertions, 0 deletions
diff --git a/paludis/CMakeLists.txt b/paludis/CMakeLists.txt
index 1488978..b63c4db 100644
--- a/paludis/CMakeLists.txt
+++ b/paludis/CMakeLists.txt
@@ -240,6 +240,8 @@ if(ENABLE_PBINS)
add_dependencies(libpaludistarextras libpaludis_SE libpaludisutil_SE)
target_link_libraries(libpaludistarextras
PRIVATE
+ libpaludis
+ libpaludisutil
${LibArchive_LIBRARIES})
endif()
@@ -249,12 +251,18 @@ if(ENABLE_STRIPPER)
add_dependencies(libpaludisstripperextras libpaludis_SE libpaludisutil_SE)
target_link_libraries(libpaludisstripperextras
PRIVATE
+ libpaludis
+ libpaludisutil
${LibMagic_LIBRARIES})
endif()
paludis_add_library(libpaludissohooks_TEST
SHARED_LIBRARY
"${CMAKE_CURRENT_SOURCE_DIR}/sohooks_TEST.cc")
+target_link_libraries(libpaludissohooks_TEST
+ PRIVATE
+ libpaludis
+ libpaludisutil)
add_dependencies(libpaludissohooks_TEST libpaludis_SE libpaludisutil_SE)
foreach(test
diff --git a/paludis/args/CMakeLists.txt b/paludis/args/CMakeLists.txt
index e294728..406621c 100644
--- a/paludis/args/CMakeLists.txt
+++ b/paludis/args/CMakeLists.txt
@@ -14,6 +14,9 @@ paludis_add_library(libpaludisargs
"${CMAKE_CURRENT_SOURCE_DIR}/man.cc"
SE_SOURCES
"${CMAKE_CURRENT_SOURCE_DIR}/args_handler.se")
+target_link_libraries(libpaludisargs
+ PRIVATE
+ libpaludisutil)
paludis_add_test(args_TEST GTEST
LINK_LIBRARIES
diff --git a/paludis/repositories/e/CMakeLists.txt b/paludis/repositories/e/CMakeLists.txt
index 65a3d44..284b184 100644
--- a/paludis/repositories/e/CMakeLists.txt
+++ b/paludis/repositories/e/CMakeLists.txt
@@ -12,6 +12,8 @@ if(ENABLE_XML)
${LIBXML2_INCLUDE_DIR})
target_link_libraries(libpaludiserepositoryxmlthings
PRIVATE
+ libpaludis
+ libpaludisutil
${LIBXML2_LIBRARIES})
endif()
diff --git a/paludis/selinux/CMakeLists.txt b/paludis/selinux/CMakeLists.txt
index 13d0151..32c609a 100644
--- a/paludis/selinux/CMakeLists.txt
+++ b/paludis/selinux/CMakeLists.txt
@@ -4,6 +4,7 @@ paludis_add_library(libpaludisselinux
add_dependencies(libpaludisselinux libpaludisutil_SE)
target_link_libraries(libpaludisselinux
PRIVATE
+ libpaludisutil
${CMAKE_DL_LIBS})
install(FILES
diff --git a/src/clients/cave/CMakeLists.txt b/src/clients/cave/CMakeLists.txt
index 0b5f4d9..d5fdb06 100644
--- a/src/clients/cave/CMakeLists.txt
+++ b/src/clients/cave/CMakeLists.txt
@@ -102,6 +102,7 @@ if(ENABLE_SEARCH_INDEX)
-DENABLE_SEARCH_INDEX=1)
target_link_libraries(libcavesearchextras
PRIVATE
+ libpaludisutil
${SQLite3_LIBRARIES})
endif()