mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 06:45:16 +01:00
zlib: don't really override CC at ay point
but leave the preConfigure script as it was when not cross building in order to avoid hash breakage
This commit is contained in:
parent
38b2bd2f28
commit
f63f96ae35
1 changed files with 8 additions and 2 deletions
|
@ -1,4 +1,8 @@
|
||||||
{ stdenv, fetchurl, static ? false }:
|
{ stdenv
|
||||||
|
, fetchurl
|
||||||
|
, buildPlatform, hostPlatform
|
||||||
|
, static ? false
|
||||||
|
}:
|
||||||
|
|
||||||
let version = "1.2.11"; in
|
let version = "1.2.11"; in
|
||||||
|
|
||||||
|
@ -24,7 +28,9 @@ stdenv.mkDerivation rec {
|
||||||
setOutputFlags = false;
|
setOutputFlags = false;
|
||||||
outputDoc = "dev"; # single tiny man3 page
|
outputDoc = "dev"; # single tiny man3 page
|
||||||
|
|
||||||
preConfigure = ''
|
# TODO(@Dridus) CC set by cc-wrapper setup-hook, so just empty out the preConfigure script when cross building, but leave the old incorrect script when not
|
||||||
|
# cross building to avoid hash breakage. Once hash breakage is acceptable, remove preConfigure entirely.
|
||||||
|
preConfigure = stdenv.lib.optionalString (hostPlatform == buildPlatform) ''
|
||||||
if test -n "$crossConfig"; then
|
if test -n "$crossConfig"; then
|
||||||
export CC=$crossConfig-gcc
|
export CC=$crossConfig-gcc
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue