diff options
author | Daniel Schaefer <git@danielschaefer.me> | 2019-06-26 22:03:40 +0200 |
---|---|---|
committer | Daniel Schaefer <git@danielschaefer.me> | 2019-06-27 21:19:02 +0200 |
commit | 543b131907aa8f635cb579661d621126aa62c8de (patch) | |
tree | c2aff5280053b3fcf4b992c3d0d9c6f38dca024a /pkgs/servers/zoneminder | |
parent | 19851ec1fce3fabec3c6f951c3fb7d5814d24691 (diff) | |
download | nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.tar nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.tar.gz nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.tar.bz2 nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.tar.lz nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.tar.xz nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.tar.zst nixpkgs-543b131907aa8f635cb579661d621126aa62c8de.zip |
zoneminder: Fix linking issue
Diffstat (limited to 'pkgs/servers/zoneminder')
-rw-r--r-- | pkgs/servers/zoneminder/default.nix | 2 | ||||
-rw-r--r-- | pkgs/servers/zoneminder/link-with-libdl.patch | 17 |
2 files changed, 19 insertions, 0 deletions
diff --git a/pkgs/servers/zoneminder/default.nix b/pkgs/servers/zoneminder/default.nix index 9c1e3ffe0b7..5a052df9e0a 100644 --- a/pkgs/servers/zoneminder/default.nix +++ b/pkgs/servers/zoneminder/default.nix @@ -89,6 +89,8 @@ in stdenv.mkDerivation rec { patches = [ ./default-to-http-1dot1.patch + # Explicitly link with dynamic linking library to fix build + ./link-with-libdl.patch ]; postPatch = '' diff --git a/pkgs/servers/zoneminder/link-with-libdl.patch b/pkgs/servers/zoneminder/link-with-libdl.patch new file mode 100644 index 00000000000..53aaf9b25f7 --- /dev/null +++ b/pkgs/servers/zoneminder/link-with-libdl.patch @@ -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) |