* Changed version of gcc to 4.0.1 - 5484 on darwin

* Added dsymutil to gcc wrapper env on darwin
 * turned off make check for gnugrep on darwin
 * added --enable-bsd=libs configure flag for gnugrep on darwin 


svn path=/nixpkgs/trunk/; revision=16014
This commit is contained in:
Rob Vermaas 2009-06-21 18:37:54 +00:00
parent 62a867c558
commit 1c3f49e06f
4 changed files with 7 additions and 7 deletions

View File

@ -1,6 +1,6 @@
source $stdenv/setup
ensureDir $out/bin
for i in ar as c++filt gprof ld nm nmedit ranlib size strings strip; do
for i in ar as c++filt gprof ld nm nmedit ranlib size strings strip dsymutil; do
ln -s /usr/bin/$i $out/bin/
done

View File

@ -9,11 +9,11 @@ assert stdenv.isDarwin;
assert langF77 -> gmp != null;
stdenv.mkDerivation ({
name = "gcc-4.2.1-apple-5531";
name = "gcc-4.0.1-apple-5484";
builder = ./builder.sh;
src = fetchurl {
url = http://www.opensource.apple.com/tarballs/gcc_42/gcc_42-5531.tar.gz ;
sha256 = "0bk37axx202x0ll1f8q00p233n3j8zga09ljxia1g89g17i64j4j";
url = http://www.opensource.apple.com/tarballs/gcc/gcc-5484.tar.gz ;
sha256 = "1cxz9mamb1673b73wywy9v28js04ay73lflpqk78zny5n07c2gv1";
};
patches =
[./pass-cxxcpp.patch]

View File

@ -9,9 +9,9 @@ stdenv.mkDerivation rec {
};
configureFlags =
if stdenv ? isDietLibC
(if stdenv ? isDietLibC
then "--with-diet-libc"
else "--enable-elf-shlibs";
else (if stdenv.system == "i686-darwin" then " --enable-bsd-shlibs" else "--enable-elf-shlibs" ) ) ;
preBuild = if stdenv ? isDietLibC then ''
sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile

View File

@ -12,7 +12,7 @@ stdenv.mkDerivation {
buildInputs = [pcre];
doCheck = true;
doCheck = if stdenv.system == "i686-darwin" then false else true;
# On Mac OS X, force use of mkdir -p, since Grep's fallback
# (./install-sh) is broken.