* GCC 3.4: pass --disable-multilib to make it build on x86_64.
svn path=/nixpkgs/trunk/; revision=9704
This commit is contained in:
parent
dded839300
commit
b5bfaa03f1
@ -37,22 +37,10 @@ fi
|
|||||||
|
|
||||||
preConfigure=preConfigure
|
preConfigure=preConfigure
|
||||||
preConfigure() {
|
preConfigure() {
|
||||||
|
|
||||||
# Determine the frontends to build.
|
|
||||||
langs="c"
|
|
||||||
if test -n "$langCC"; then
|
|
||||||
langs="$langs,c++"
|
|
||||||
fi
|
|
||||||
if test -n "$langF77"; then
|
|
||||||
langs="$langs,f77"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Perform the build in a different directory.
|
# Perform the build in a different directory.
|
||||||
mkdir ../build
|
mkdir ../build
|
||||||
cd ../build
|
cd ../build
|
||||||
|
|
||||||
configureScript=../$sourceRoot/configure
|
configureScript=../$sourceRoot/configure
|
||||||
configureFlags="--enable-languages=$langs $configureFlags"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,6 +5,8 @@
|
|||||||
|
|
||||||
assert langC;
|
assert langC;
|
||||||
|
|
||||||
|
with import ../../../lib;
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "gcc-3.4.6";
|
name = "gcc-3.4.6";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
@ -15,7 +17,22 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
patches = if noSysDirs then [./no-sys-dirs.patch] else [];
|
patches = if noSysDirs then [./no-sys-dirs.patch] else [];
|
||||||
|
|
||||||
inherit noSysDirs langC langCC langF77 profiledCompiler;
|
inherit noSysDirs profiledCompiler;
|
||||||
|
|
||||||
|
configureFlags = "
|
||||||
|
--disable-multilib
|
||||||
|
--with-system-zlib
|
||||||
|
--enable-languages=${
|
||||||
|
concatStrings (intersperse ","
|
||||||
|
( optional langC "c"
|
||||||
|
++ optional langCC "c++"
|
||||||
|
++ optional langF77 "f77"
|
||||||
|
)
|
||||||
|
)
|
||||||
|
}
|
||||||
|
";
|
||||||
|
|
||||||
|
passthru = { inherit langC langCC langF77; };
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
homepage = "http://gcc.gnu.org/";
|
homepage = "http://gcc.gnu.org/";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user