]> git.saurik.com Git - apt.git/commitdiff
CMake: Do not hardcode -ldl
authorJulian Andres Klode <jak@debian.org>
Tue, 23 Aug 2016 11:38:19 +0000 (13:38 +0200)
committerJulian Andres Klode <jak@debian.org>
Fri, 26 Aug 2016 13:49:14 +0000 (15:49 +0200)
Does not exist on FreeBSD

Gbp-Dch: ignore

apt-pkg/CMakeLists.txt

index a90bb1d8c4071226ea1e54a09bedd6686ca51fb9..9bbc6bd98cd4379316942b356f2cdbd45130aa82 100644 (file)
@@ -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}