diff options
author | Moritz Angermann <moritz.angermann@gmail.com> | 2019-09-10 10:21:46 +0800 |
---|---|---|
committer | Moritz Angermann <moritz.angermann@gmail.com> | 2019-10-17 22:52:59 +0800 |
commit | 0e7977015e87c2f1b59fd9032fd6ad559ab0cde1 (patch) | |
tree | 560422072d47a76a2977028aca4229f5cc2d9baa /pkgs/development/libraries/gmp | |
parent | 0256080d11b53acef115d7547ad3e33e7a879e10 (diff) |
[gmp] Fix shared windows cross compilation
Diffstat (limited to 'pkgs/development/libraries/gmp')
-rw-r--r-- | pkgs/development/libraries/gmp/6.x.nix | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pkgs/development/libraries/gmp/6.x.nix b/pkgs/development/libraries/gmp/6.x.nix index d9ea5a71dd300..4b35f7828fe02 100644 --- a/pkgs/development/libraries/gmp/6.x.nix +++ b/pkgs/development/libraries/gmp/6.x.nix @@ -37,7 +37,9 @@ let self = stdenv.mkDerivation rec { "--build=${stdenv.buildPlatform.config}" ] ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions" ++ optional (stdenv.isDarwin && stdenv.is64bit) "ABI=64" - ++ optional (with stdenv.hostPlatform; (useAndroidPrebuilt || useiOSPrebuilt) && !isx86) "--disable-assembly" + # to build a .dll on windows, we need --disable-static + --enable-shared + # see https://gmplib.org/manual/Notes-for-Particular-Systems.html + ++ optional (!withStatic && stdenv.hostPlatform.isWindows) "--disable-static --enable-shared" ; doCheck = true; # not cross; |