GCC 4.6: Fix `gccCrossStageFinal' for GNU/Hurd.
svn path=/nixpkgs/trunk/; revision=32853
This commit is contained in:
parent
7f3aa94399
commit
09531a24ad
@ -44,6 +44,9 @@ with builtins;
|
|||||||
|
|
||||||
let version = "4.6.3";
|
let version = "4.6.3";
|
||||||
|
|
||||||
|
# Whether building a cross-compiler for GNU/Hurd.
|
||||||
|
crossGNU = cross != null && cross.config == "i586-pc-gnu";
|
||||||
|
|
||||||
patches = [ ]
|
patches = [ ]
|
||||||
++ optional (cross != null) ./libstdc++-target.patch
|
++ optional (cross != null) ./libstdc++-target.patch
|
||||||
++ optional noSysDirs ./no-sys-dirs.patch
|
++ optional noSysDirs ./no-sys-dirs.patch
|
||||||
@ -51,7 +54,7 @@ let version = "4.6.3";
|
|||||||
# target libraries and tools.
|
# target libraries and tools.
|
||||||
++ optional langAda ./gnat-cflags.patch
|
++ optional langAda ./gnat-cflags.patch
|
||||||
++ optional langVhdl ./ghdl-ortho-cflags.patch
|
++ optional langVhdl ./ghdl-ortho-cflags.patch
|
||||||
++ optional stdenv.isGNU ./hurd-sigrtmin.patch;
|
++ optional (stdenv.isGNU || crossGNU) ./hurd-sigrtmin.patch;
|
||||||
|
|
||||||
javaEcj = fetchurl {
|
javaEcj = fetchurl {
|
||||||
# The `$(top_srcdir)/ecj.jar' file is automatically picked up at
|
# The `$(top_srcdir)/ecj.jar' file is automatically picked up at
|
||||||
@ -150,12 +153,11 @@ stdenv.mkDerivation ({
|
|||||||
inherit patches;
|
inherit patches;
|
||||||
|
|
||||||
postPatch =
|
postPatch =
|
||||||
if (stdenv.system == "i586-pc-gnu"
|
if (stdenv.isGNU
|
||||||
|| (libcCross != null # e.g., building `gcc.hostDrv'
|
|| (libcCross != null # e.g., building `gcc.hostDrv'
|
||||||
&& libcCross ? crossConfig
|
&& libcCross ? crossConfig
|
||||||
&& libcCross.crossConfig == "i586-pc-gnu")
|
&& libcCross.crossConfig == "i586-pc-gnu")
|
||||||
|| (cross != null && cross.config == "i586-pc-gnu"
|
|| (crossGNU && libcCross != null))
|
||||||
&& libcCross != null))
|
|
||||||
then
|
then
|
||||||
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
|
# On GNU/Hurd glibc refers to Hurd & Mach headers and libpthread is not
|
||||||
# in glibc, so add the right `-I' flags to the default spec string.
|
# in glibc, so add the right `-I' flags to the default spec string.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user