diff options
author | Julian Andres Klode <jak@debian.org> | 2016-08-23 13:38:19 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2016-08-26 15:49:14 +0200 |
commit | 374ab017c262108c0f12bcdc8d15ff242c7adc56 (patch) | |
tree | 42949b17c7f4607247d9e8a9fd0b3efaebb6d77c | |
parent | b10ec8cc7b6b9d181cccacee6b4c1c4c5bdbd510 (diff) | |
download | apt-374ab017c262108c0f12bcdc8d15ff242c7adc56.tar.gz |
CMake: Do not hardcode -ldl
Does not exist on FreeBSD
Gbp-Dch: ignore
-rw-r--r-- | apt-pkg/CMakeLists.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/CMakeLists.txt b/apt-pkg/CMakeLists.txt index a90bb1d8c..9bbc6bd98 100644 --- a/apt-pkg/CMakeLists.txt +++ b/apt-pkg/CMakeLists.txt @@ -30,7 +30,7 @@ target_include_directories(apt-pkg ${LZMA_INCLUDE_DIRS} ${LZ4_INCLUDE_DIRS}) target_link_libraries(apt-pkg - PRIVATE -lutil -ldl -lresolv + PRIVATE -lutil ${CMAKE_DL_LIBS} -lresolv ${CMAKE_THREAD_LIBS_INIT} ${ZLIB_LIBRARIES} ${BZIP2_LIBRARIES} |