about summary refs log tree commit diff
path: root/pkgs/development/libraries/boost
diff options
context:
space:
mode:
authorDoro Rose <doroerose@gmail.com>2022-04-10 20:51:12 +0200
committerDoro Rose <doroerose@gmail.com>2022-04-10 20:51:12 +0200
commit4a8f46f7ce3ba5ba23b12823658afe74d6a5223e (patch)
tree28082029b5b98db20d15c3ae027a1cf709ebaea5 /pkgs/development/libraries/boost
parent2aba5d30805183215704d168085c6c2c34eeaf0b (diff)
boost: make boost work for static darwin builds
Prior needsUserConfig setting is unconditionally applied for darwin.
This is not valid for static builds and should only be set for dynamically linked darwin builds.
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r--pkgs/development/libraries/boost/generic.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/libraries/boost/generic.nix b/pkgs/development/libraries/boost/generic.nix
index c0fce3ae57602..17698216b8d9a 100644
--- a/pkgs/development/libraries/boost/generic.nix
+++ b/pkgs/development/libraries/boost/generic.nix
@@ -68,7 +68,7 @@ let
     else
       "$NIX_BUILD_CORES";
 
-  needUserConfig = stdenv.hostPlatform != stdenv.buildPlatform || useMpi || stdenv.isDarwin;
+  needUserConfig = stdenv.hostPlatform != stdenv.buildPlatform || useMpi || (stdenv.isDarwin && enableShared);
 
   b2Args = concatStringsSep " " ([
     "--includedir=$dev/include"