about summary refs log tree commit diff
path: root/pkgs/development/libraries/boost
diff options
context:
space:
mode:
authorLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-10-02 07:39:11 +0000
committerLluís Batlle i Rossell <viric@vicerveza.homeunix.net>2009-10-02 07:39:11 +0000
commit924d48083b8dde4225028b14dd2409d287ff8b47 (patch)
treec53008bc3cdc735b93c5dad49250b1356e227705 /pkgs/development/libraries/boost
parentc66b4ee26d7da34bbc636197c32d2e377716b4ec (diff)
downloadnixlib-924d48083b8dde4225028b14dd2409d287ff8b47.tar
nixlib-924d48083b8dde4225028b14dd2409d287ff8b47.tar.gz
nixlib-924d48083b8dde4225028b14dd2409d287ff8b47.tar.bz2
nixlib-924d48083b8dde4225028b14dd2409d287ff8b47.tar.lz
nixlib-924d48083b8dde4225028b14dd2409d287ff8b47.tar.xz
nixlib-924d48083b8dde4225028b14dd2409d287ff8b47.tar.zst
nixlib-924d48083b8dde4225028b14dd2409d287ff8b47.zip
Fixing boostFull 1.40.0
They removed the usual tagged library names in 1.40 under the layout
"system", but they introduced a new layout "tagged". The "tagged" layout
is needed when we want more than one 'style' of the libraries at once(debug,release, ...

svn path=/nixpkgs/trunk/; revision=17585
Diffstat (limited to 'pkgs/development/libraries/boost')
-rw-r--r--pkgs/development/libraries/boost/1.40.0.nix8
1 files changed, 7 insertions, 1 deletions
diff --git a/pkgs/development/libraries/boost/1.40.0.nix b/pkgs/development/libraries/boost/1.40.0.nix
index 0ae1470178c6..e67af56a3624 100644
--- a/pkgs/development/libraries/boost/1.40.0.nix
+++ b/pkgs/development/libraries/boost/1.40.0.nix
@@ -21,6 +21,12 @@ let
     (stdenv.lib.optional enableShared "shared" ++
      stdenv.lib.optional enableStatic "static");
 
+  # To avoid library name collisions
+  finalLayout = if ((enableRelease && enableDebug) ||
+    (enableSingleThreaded && enableMultiThreaded) ||
+    (enableShared && enableStatic)) then
+    "system" else "tagged";
+
 in
 
 stdenv.mkDerivation {
@@ -42,7 +48,7 @@ stdenv.mkDerivation {
   configureScript = "./bootstrap.sh";
   configureFlags = "--with-icu=${icu} --with-python=${python}/bin/python";
 
-  buildPhase = "./bjam -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=system variant=${variant} threading=${threading} link=${link} install";
+  buildPhase = "./bjam -sEXPAT_INCLUDE=${expat}/include -sEXPAT_LIBPATH=${expat}/lib --layout=${finalLayout} variant=${variant} threading=${threading} link=${link} install";
 
   installPhase = ":";
 }