about summary refs log tree commit diff
path: root/pkgs/development/libraries/science/math/atlas
diff options
context:
space:
mode:
authorMichael Raskin <7c6f434c@mail.ru>2012-04-05 12:18:08 +0000
committerMichael Raskin <7c6f434c@mail.ru>2012-04-05 12:18:08 +0000
commit2f97078c96c36dd041690c65a74a6ebc482f2c37 (patch)
tree4888527a178340211dfc9f12fa39a26cdb41d116 /pkgs/development/libraries/science/math/atlas
parent78d9ee096aa5824b8ba192d6dc8d6519b94752f2 (diff)
downloadnixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.tar
nixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.tar.gz
nixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.tar.bz2
nixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.tar.lz
nixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.tar.xz
nixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.tar.zst
nixlib-2f97078c96c36dd041690c65a74a6ebc482f2c37.zip
Support shared library build
svn path=/nixpkgs/trunk/; revision=33612
Diffstat (limited to 'pkgs/development/libraries/science/math/atlas')
-rw-r--r--pkgs/development/libraries/science/math/atlas/default.nix6
1 files changed, 4 insertions, 2 deletions
diff --git a/pkgs/development/libraries/science/math/atlas/default.nix b/pkgs/development/libraries/science/math/atlas/default.nix
index 74d206210898..6382ec413e2f 100644
--- a/pkgs/development/libraries/science/math/atlas/default.nix
+++ b/pkgs/development/libraries/science/math/atlas/default.nix
@@ -1,4 +1,4 @@
-{ stdenv, fetchurl, gfortran, tolerateCpuTimingInaccuracy ? true }:
+{ stdenv, fetchurl, gfortran, tolerateCpuTimingInaccuracy ? true, shared ? false }:
 
 let
   optionalString = stdenv.lib.optionalString;
@@ -25,7 +25,9 @@ stdenv.mkDerivation {
   #   machine in the first place.
   configureFlags = "-Fa alg -fPIC"
     + optionalString stdenv.isi686 " -b 32"
-    + optionalString tolerateCpuTimingInaccuracy " -Si cputhrchk 0";
+    + optionalString tolerateCpuTimingInaccuracy " -Si cputhrchk 0"
+    + optionalString shared " --shared "
+    ;
 
   buildInputs = [ gfortran ];