diff options
author | Niklas Hambüchen <mail@nh2.me> | 2024-06-19 20:25:52 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-19 20:25:52 +0200 |
commit | 85f17f483b193e172370ebcc6a1dcd855d97eac4 (patch) | |
tree | 0be98463385a2d9ffa959364acd239d3fa17cdac /pkgs/development/libraries | |
parent | 7e1f4f7daf9be03f9fe94b80b27054eddbcddb23 (diff) | |
parent | 104af06196f35d2c92761def958148d8a60807c6 (diff) |
Merge pull request #320756 from nh2/dlib-shared-libraries
dlib: Fix shared libraries not being built
Diffstat (limited to 'pkgs/development/libraries')
-rw-r--r-- | pkgs/development/libraries/dlib/default.nix | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pkgs/development/libraries/dlib/default.nix b/pkgs/development/libraries/dlib/default.nix index 9a9b774ad265e..e7915ad652144 100644 --- a/pkgs/development/libraries/dlib/default.nix +++ b/pkgs/development/libraries/dlib/default.nix @@ -11,6 +11,7 @@ , config , guiSupport ? false , libX11 +, enableShared ? !stdenv.hostPlatform.isStatic # dlib has a build system that forces the user to choose between either shared or static libraries. See https://github.com/davisking/dlib/issues/923#issuecomment-2175865174 , sse4Support ? stdenv.hostPlatform.sse4_1Support , avxSupport ? stdenv.hostPlatform.avxSupport , cudaSupport ? config.cudaSupport @@ -32,6 +33,7 @@ ''; cmakeFlags = [ + (lib.cmakeBool "BUILD_SHARED_LIBS" enableShared) (lib.cmakeBool "USE_SSE4_INSTRUCTIONS" sse4Support) (lib.cmakeBool "USE_AVX_INSTRUCTIONS" avxSupport) (lib.cmakeBool "DLIB_USE_CUDA" cudaSupport) |