1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-01-22 14:45:27 +00:00

* wrapGCC: pass the right purity options for the platform.

svn path=/nixpkgs/trunk/; revision=8710
This commit is contained in:
Eelco Dolstra 2007-05-16 15:15:46 +00:00
parent 62b0dddf0e
commit d3b29d16a0
2 changed files with 6 additions and 4 deletions

View file

@ -20,12 +20,14 @@ stdenv.mkDerivation {
ldWrapper = ./ld-wrapper.sh;
utils = ./utils.sh;
addFlags = ./add-flags;
inherit nativeTools nativeLibc nativePrefix gcc libc binutils;
name = if name == "" then gcc.name else name;
langC = if nativeTools then true else gcc.langC;
langCC = if nativeTools then true else gcc.langCC;
langF77 = if nativeTools then false else gcc.langF77;
shell = if shell == "" then stdenv.shell else shell;
meta = if gcc != null && (gcc ? meta) then gcc.meta else
{ description = "System C compiler wrapper";
};

View file

@ -844,16 +844,16 @@ rec {
};
wrapGCC = baseGCC: import ../build-support/gcc-wrapper {
nativeTools = false;
nativeLibc = false;
nativeTools = stdenv ? gcc && stdenv.gcc.nativeTools;
nativeLibc = stdenv ? gcc && stdenv.gcc.nativeLibc;
gcc = baseGCC;
libc = glibc;
inherit stdenv binutils;
};
wrapGCCNew = baseGCC: import ../build-support/gcc-wrapper-new {
nativeTools = false;
nativeLibc = false;
nativeTools = stdenv ? gcc && stdenv.gcc.nativeTools;
nativeLibc = stdenv ? gcc && stdenv.gcc.nativeLibc;
gcc = baseGCC;
libc = glibc;
inherit stdenv binutils;