Merge pull request #8307 from dezgeg/pr-gmp
[WIP] gmp6: Fix build on ARM
This commit is contained in:
commit
8c2a8661eb
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, m4, cxx ? true, withStatic ? true }:
|
||||
|
||||
with { inherit (stdenv.lib) optional; };
|
||||
with { inherit (stdenv.lib) optional optionalString; };
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gmp-5.1.3";
|
||||
@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
|
||||
++ optional stdenv.is64bit "--with-pic"
|
||||
;
|
||||
|
||||
# The config.guess in GMP tries to runtime-detect various
|
||||
# ARM optimization flags via /proc/cpuinfo (and is also
|
||||
# broken on multicore CPUs). Avoid this impurity.
|
||||
preConfigure = optionalString stdenv.isArm ''
|
||||
configureFlagsArray+=("--build=$(./configfsf.guess)")
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
dontDisableStatic = withStatic;
|
||||
|
@ -1,6 +1,6 @@
|
||||
{ stdenv, fetchurl, m4, cxx ? true, withStatic ? true }:
|
||||
|
||||
with { inherit (stdenv.lib) optional; };
|
||||
with { inherit (stdenv.lib) optional optionalString; };
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
name = "gmp-6.0.0a";
|
||||
@ -26,6 +26,13 @@ stdenv.mkDerivation rec {
|
||||
++ optional stdenv.is64bit "--with-pic"
|
||||
;
|
||||
|
||||
# The config.guess in GMP tries to runtime-detect various
|
||||
# ARM optimization flags via /proc/cpuinfo (and is also
|
||||
# broken on multicore CPUs). Avoid this impurity.
|
||||
preConfigure = optionalString stdenv.isArm ''
|
||||
configureFlagsArray+=("--build=$(./configfsf.guess)")
|
||||
'';
|
||||
|
||||
doCheck = true;
|
||||
|
||||
dontDisableStatic = withStatic;
|
||||
|
Loading…
x
Reference in New Issue
Block a user