Skip to content

Commit

Permalink
GCC 4.7: Make sure `stdenv.glibc' exists before using it.
Browse files Browse the repository at this point in the history
svn path=/nixpkgs/trunk/; revision=32995
  • Loading branch information
civodul committed Mar 11, 2012
1 parent 2b2eb19 commit 0752b1e
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions pkgs/top-level/all-packages.nix
Expand Up @@ -1934,7 +1934,6 @@ let
binutilsCross = null;
}));

/* needs to be fixed:
gcc47 = lowPrio (wrapGCC (lib.overrideDerivation gcc46_debug.gcc (a: {
name = "gcc-debug-4.7.0rc20120302";
src = fetchurl {
Expand All @@ -1944,11 +1943,11 @@ let

configureFlags = a.configureFlags
# This flag replaces `no-sys-dirs.patch'.
+ " --with-native-system-header-dir=${stdenv.glibc}/include";
+ (lib.optionalString (stdenv ? glibc)
" --with-native-system-header-dir=${stdenv.glibc}/include");

patches = [];
})));
*/

gccApple =
wrapGCC ( (if stdenv.system == "i686-darwin" then import ../development/compilers/gcc/4.2-apple32 else import ../development/compilers/gcc/4.2-apple64) {
Expand Down

0 comments on commit 0752b1e

Please sign in to comment.