diff options
author | Eelco Dolstra | 2004-03-09 17:10:23 +0000 |
---|---|---|
committer | Eelco Dolstra | 2004-03-09 17:10:23 +0000 |
commit | ab73ec398bb3b0baac73196df2b8bbcf6171cb56 (patch) | |
tree | 7d8b89852a34c420949795279bfe5298c9db05dd | |
parent | b8b4f9ce4b44e22308d6bac476c78a5639863610 (diff) |
* Removed the old gcc.
svn path=/nixpkgs/trunk/; revision=825
-rwxr-xr-x | pkgs/development/compilers/gcc-new/builder.sh | 5 | ||||
-rw-r--r-- | pkgs/development/compilers/gcc-new/default.nix | 14 | ||||
-rwxr-xr-x | pkgs/development/compilers/gcc/builder.sh | 56 | ||||
-rw-r--r-- | pkgs/development/compilers/gcc/default.nix | 12 |
4 files changed, 12 insertions, 75 deletions
diff --git a/pkgs/development/compilers/gcc-new/builder.sh b/pkgs/development/compilers/gcc-new/builder.sh index de1b7e1b0a75..ce772d07a78c 100755 --- a/pkgs/development/compilers/gcc-new/builder.sh +++ b/pkgs/development/compilers/gcc-new/builder.sh @@ -5,7 +5,7 @@ buildinputs="$binutils" tar xvfj $src -if test "$noSysDirs" == "1"; then +if test "$enforcePurity" = "1"; then # Disable the standard include directories. cd gcc-* cat >> ./gcc/cppdefault.h <<EOF @@ -29,8 +29,9 @@ mkdir build cd build ../gcc-*/configure --prefix=$out --enable-languages="$langs" -if test "$noSysDirs" == "1"; then +if test "$enforcePurity" = "1"; then # Patch some of the makefiles to force linking against our own glibc. + . $NIX_GCC/nix-support/add-flags # add glibc/gcc flags extraflags="-Wl,-s $NIX_CFLAGS_COMPILE $NIX_CFLAGS_LINK" for i in $NIX_LDFLAGS; do extraflags="$extraflags -Wl,$i" diff --git a/pkgs/development/compilers/gcc-new/default.nix b/pkgs/development/compilers/gcc-new/default.nix index e2311a260237..9e79b21cd7a6 100644 --- a/pkgs/development/compilers/gcc-new/default.nix +++ b/pkgs/development/compilers/gcc-new/default.nix @@ -1,16 +1,20 @@ -{ stdenv, fetchurl, noSysDirs ? true +{ stdenv, fetchurl, enforcePurity ? true , langC ? true, langCC ? true, langF77 ? false }: assert langC; derivation { - name = "gcc-3.3.3"; + name = "gcc-3.3.2"; system = stdenv.system; builder = ./builder.sh; src = fetchurl { - url = ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-3.3.3/gcc-3.3.3.tar.bz2; - md5 = "3c6cfd9fcd180481063b4058cf6faff2"; + url = ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-3.3.2/gcc-3.3.2.tar.bz2; + md5 = "65999f654102f5438ac8562d13a6eced"; }; - inherit stdenv noSysDirs langC langCC langF77; +# src = fetchurl { +# url = ftp://ftp.nluug.nl/mirror/languages/gcc/releases/gcc-3.3.3/gcc-3.3.3.tar.bz2; +# md5 = "3c6cfd9fcd180481063b4058cf6faff2"; +# }; + inherit stdenv enforcePurity langC langCC langF77; } diff --git a/pkgs/development/compilers/gcc/builder.sh b/pkgs/development/compilers/gcc/builder.sh deleted file mode 100755 index 15746b264399..000000000000 --- a/pkgs/development/compilers/gcc/builder.sh +++ /dev/null @@ -1,56 +0,0 @@ -#! /bin/sh - -buildinputs="$binutils" -. $stdenv/setup || exit 1 - -tar xvfj $src || exit 1 - -if test "$noSysDirs" == "1"; then - # Disable the standard include directories. - cd gcc-* || exit 1 - cat >> ./gcc/cppdefault.h <<EOF -#undef LOCAL_INCLUDE_DIR -#undef SYSTEM_INCLUDE_DIR -#undef STANDARD_INCLUDE_DIR -EOF - cd .. || exit 1 -fi - -# Configure. -mkdir build || exit 1 -cd build || exit 1 -../gcc-*/configure --prefix=$out --enable-languages=c,c++ || exit 1 - -if test "$noSysDirs" == "1"; then - # Patch some of the makefiles to force linking against our own glibc. - extraflags="-Wl,-s $NIX_CFLAGS_COMPILE $NIX_CFLAGS_LINK" - for i in $NIX_LDFLAGS; do - extraflags="$extraflags -Wl,$i" - done - - mf=Makefile - sed \ - -e "s^FLAGS_FOR_TARGET =\(.*\)^FLAGS_FOR_TARGET = \1 $extraflags^" \ - < $mf > $mf.tmp || exit 1 - mv $mf.tmp $mf - - mf=gcc/Makefile - sed \ - -e "s^X_CFLAGS =\(.*\)^X_CFLAGS = \1 $extraflags^" \ - < $mf > $mf.tmp || exit 1 - mv $mf.tmp $mf - - # Patch gcc/Makefile to prevent fixinc.sh from "fixing" system header files - # from /usr/include. - mf=gcc/Makefile - sed \ - -e "s^NATIVE_SYSTEM_HEADER_DIR =\(.*\)^NATIVE_SYSTEM_HEADER_DIR = /fixinc-disabled^" \ - < $mf > $mf.tmp || exit 1 - mv $mf.tmp $mf -fi - -# Build and install. -make bootstrap || exit 1 -make install || exit 1 - -find $out -name "*.a" -exec strip -S {} \; || exit 1 diff --git a/pkgs/development/compilers/gcc/default.nix b/pkgs/development/compilers/gcc/default.nix deleted file mode 100644 index 0effb18de1a7..000000000000 --- a/pkgs/development/compilers/gcc/default.nix +++ /dev/null @@ -1,12 +0,0 @@ -{stdenv, fetchurl, binutils}: derivation { - name = "gcc-3.3.2"; - system = stdenv.system; - builder = ./builder.sh; - src = fetchurl { - url = ftp://ftp.nluug.nl/pub/gnu/gcc/gcc-3.3.2/gcc-3.3.2.tar.bz2; - md5 = "65999f654102f5438ac8562d13a6eced"; - }; - stdenv = stdenv; - binutils = binutils; - noSysDirs = stdenv.noSysDirs; -} |