mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-01 15:11:25 +00:00
gmp: don't infer build platform from uname
This commit is contained in:
parent
aca57f1aed
commit
3e94847022
@ -29,17 +29,14 @@ let self = stdenv.mkDerivation rec {
|
|||||||
#
|
#
|
||||||
# no darwin because gmp uses ASM that clang doesn't like
|
# no darwin because gmp uses ASM that clang doesn't like
|
||||||
(stdenv.lib.enableFeature (!stdenv.isSunOS && stdenv.hostPlatform.isx86) "fat")
|
(stdenv.lib.enableFeature (!stdenv.isSunOS && stdenv.hostPlatform.isx86) "fat")
|
||||||
|
# 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.
|
||||||
|
"--build=${stdenv.buildPlatform.config}"
|
||||||
] ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions"
|
] ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions"
|
||||||
++ optional (stdenv.isDarwin && stdenv.is64bit) "ABI=64"
|
++ optional (stdenv.isDarwin && stdenv.is64bit) "ABI=64"
|
||||||
;
|
;
|
||||||
|
|
||||||
# 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.isAarch32 ''
|
|
||||||
configureFlagsArray+=("--build=$(./configfsf.guess)")
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
|
||||||
dontDisableStatic = withStatic;
|
dontDisableStatic = withStatic;
|
||||||
|
@ -30,18 +30,15 @@ let self = stdenv.mkDerivation rec {
|
|||||||
#
|
#
|
||||||
# no darwin because gmp uses ASM that clang doesn't like
|
# no darwin because gmp uses ASM that clang doesn't like
|
||||||
(stdenv.lib.enableFeature (!stdenv.isSunOS && stdenv.hostPlatform.isx86) "fat")
|
(stdenv.lib.enableFeature (!stdenv.isSunOS && stdenv.hostPlatform.isx86) "fat")
|
||||||
|
# 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.
|
||||||
|
"--build=${stdenv.buildPlatform.config}"
|
||||||
] ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions"
|
] ++ optional (cxx && stdenv.isDarwin) "CPPFLAGS=-fexceptions"
|
||||||
++ optional (stdenv.isDarwin && stdenv.is64bit) "ABI=64"
|
++ optional (stdenv.isDarwin && stdenv.is64bit) "ABI=64"
|
||||||
++ optional (with stdenv.hostPlatform; useAndroidPrebuilt || useiOSPrebuilt) "--disable-assembly"
|
++ optional (with stdenv.hostPlatform; useAndroidPrebuilt || useiOSPrebuilt) "--disable-assembly"
|
||||||
;
|
;
|
||||||
|
|
||||||
# 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.isAarch32 ''
|
|
||||||
configureFlagsArray+=("--build=$(./configfsf.guess)")
|
|
||||||
'';
|
|
||||||
|
|
||||||
doCheck = true; # not cross;
|
doCheck = true; # not cross;
|
||||||
|
|
||||||
dontDisableStatic = withStatic;
|
dontDisableStatic = withStatic;
|
||||||
|
Loading…
Reference in New Issue
Block a user