git.iko.soy/typeable/nixpkgs
on master help sign in
[gmp] Fix shared windows cross compilation
commit0e7977015e87c2f1b59fd9032fd6ad559ab0cde1 authorMoritz Angermann <moritz.angermann@gmail.com> dateTue 10 Sep 2019, 10:21 (7 years ago) parent0256080
1 file changed+3−1
pkgs/development/libraries/gmp/6.x.nix+3−1
pkgs/development/libraries/gmp/6.x.nix+3−1
@@ -37,7 +37,9 @@ let self = stdenv.mkDerivation rec {
3737 "--build=${stdenv.buildPlatform.config}"
3838 ] ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions"
3939 ++ optional (stdenv.isDarwin && stdenv.is64bit) "ABI=64"
40− ++ optional (with stdenv.hostPlatform; (useAndroidPrebuilt || useiOSPrebuilt) && !isx86) "--disable-assembly"
40+ # to build a .dll on windows, we need --disable-static + --enable-shared
41+ # see https://gmplib.org/manual/Notes-for-Particular-Systems.html
42+ ++ optional (!withStatic && stdenv.hostPlatform.isWindows) "--disable-static --enable-shared"
4143 ;
4244
4345 doCheck = true; # not cross;