* 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:
parent
62a867c558
commit
1c3f49e06f
@ -1,6 +1,6 @@
|
|||||||
source $stdenv/setup
|
source $stdenv/setup
|
||||||
|
|
||||||
ensureDir $out/bin
|
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/
|
ln -s /usr/bin/$i $out/bin/
|
||||||
done
|
done
|
||||||
|
@ -9,11 +9,11 @@ assert stdenv.isDarwin;
|
|||||||
assert langF77 -> gmp != null;
|
assert langF77 -> gmp != null;
|
||||||
|
|
||||||
stdenv.mkDerivation ({
|
stdenv.mkDerivation ({
|
||||||
name = "gcc-4.2.1-apple-5531";
|
name = "gcc-4.0.1-apple-5484";
|
||||||
builder = ./builder.sh;
|
builder = ./builder.sh;
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.opensource.apple.com/tarballs/gcc_42/gcc_42-5531.tar.gz ;
|
url = http://www.opensource.apple.com/tarballs/gcc/gcc-5484.tar.gz ;
|
||||||
sha256 = "0bk37axx202x0ll1f8q00p233n3j8zga09ljxia1g89g17i64j4j";
|
sha256 = "1cxz9mamb1673b73wywy9v28js04ay73lflpqk78zny5n07c2gv1";
|
||||||
};
|
};
|
||||||
patches =
|
patches =
|
||||||
[./pass-cxxcpp.patch]
|
[./pass-cxxcpp.patch]
|
||||||
|
@ -9,9 +9,9 @@ stdenv.mkDerivation rec {
|
|||||||
};
|
};
|
||||||
|
|
||||||
configureFlags =
|
configureFlags =
|
||||||
if stdenv ? isDietLibC
|
(if stdenv ? isDietLibC
|
||||||
then "--with-diet-libc"
|
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 ''
|
preBuild = if stdenv ? isDietLibC then ''
|
||||||
sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile
|
sed -e 's/-lpthread//' -i Makefile */Makefile */*/Makefile
|
||||||
|
@ -12,7 +12,7 @@ stdenv.mkDerivation {
|
|||||||
|
|
||||||
buildInputs = [pcre];
|
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
|
# On Mac OS X, force use of mkdir -p, since Grep's fallback
|
||||||
# (./install-sh) is broken.
|
# (./install-sh) is broken.
|
||||||
|
Loading…
Reference in New Issue
Block a user