forked from mirrors/nixpkgs
zoneminder: Fix linking issue
This commit is contained in:
parent
19851ec1fc
commit
543b131907
pkgs/servers/zoneminder
|
@ -89,6 +89,8 @@ in stdenv.mkDerivation rec {
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./default-to-http-1dot1.patch
|
./default-to-http-1dot1.patch
|
||||||
|
# Explicitly link with dynamic linking library to fix build
|
||||||
|
./link-with-libdl.patch
|
||||||
];
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
|
|
17
pkgs/servers/zoneminder/link-with-libdl.patch
Normal file
17
pkgs/servers/zoneminder/link-with-libdl.patch
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
--- a/src/CMakeLists.txt
|
||||||
|
+++ b/src/CMakeLists.txt
|
||||||
|
@@ -20,10 +20,10 @@ add_executable(zms zms.cpp)
|
||||||
|
include_directories(libbcrypt/include/bcrypt)
|
||||||
|
include_directories(jwt-cpp/include/jwt-cpp)
|
||||||
|
|
||||||
|
-target_link_libraries(zmc zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS})
|
||||||
|
-target_link_libraries(zma zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS})
|
||||||
|
-target_link_libraries(zmu zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS})
|
||||||
|
-target_link_libraries(zms zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS})
|
||||||
|
+target_link_libraries(zmc zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS} ${CMAKE_DL_LIBS})
|
||||||
|
+target_link_libraries(zma zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS} ${CMAKE_DL_LIBS})
|
||||||
|
+target_link_libraries(zmu zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS} ${CMAKE_DL_LIBS})
|
||||||
|
+target_link_libraries(zms zm ${ZM_EXTRA_LIBS} ${ZM_BIN_LIBS} ${CMAKE_DL_LIBS})
|
||||||
|
|
||||||
|
# Generate man files for the binaries destined for the bin folder
|
||||||
|
FOREACH(CBINARY zma zmc zmu)
|
Loading…
Reference in a new issue