[gmp] Fix shared windows cross compilation

main
Moritz Angermann 5 years ago
parent 0256080d11
commit 0e7977015e
No known key found for this signature in database
GPG Key ID: A98C646D142C675F
  1. 4
      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;

Loading…
Cancel
Save