From ab73ec398bb3b0baac73196df2b8bbcf6171cb56 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Tue, 9 Mar 2004 17:10:23 +0000 Subject: [PATCH] * Removed the old gcc. svn path=/nixpkgs/trunk/; revision=825 --- pkgs/development/compilers/gcc-new/builder.sh | 5 +- .../development/compilers/gcc-new/default.nix | 14 +++-- pkgs/development/compilers/gcc/builder.sh | 56 ------------------- pkgs/development/compilers/gcc/default.nix | 12 ---- 4 files changed, 12 insertions(+), 75 deletions(-) delete mode 100755 pkgs/development/compilers/gcc/builder.sh delete mode 100644 pkgs/development/compilers/gcc/default.nix 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 <> ./gcc/cppdefault.h < $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; -}