Build ppl and gmp correctly for building gcc48 on darwin

This commit is contained in:
John Wiegley 2014-05-28 01:35:31 -05:00
parent cdadc70e5d
commit 4cb43d2a75
2 changed files with 6 additions and 2 deletions

View File

@ -15,7 +15,8 @@ stdenv.mkDerivation rec {
# (x86), except on Solaris where some tests crash with "Memory fault".
# See <http://hydra.nixos.org/build/2760931>, for instance.
(stdenv.lib.optional (!stdenv.isSunOS) "--enable-fat")
++ (if cxx then [ "--enable-cxx" ] else [ "--disable-cxx" ])
++ (if cxx then [ "--enable-cxx" "CPPFLAGS=-fexceptions" ]
else [ "--disable-cxx" ])
++ (if stdenv.is64bit then [ "--with-pic" ] else []);
doCheck = true;

View File

@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ perl gnum4 ];
propagatedBuildInputs = [ gmpxx ];
configureFlags = "--disable-watchdog";
configureFlags = [ "--disable-watchdog" "CPPFLAGS=-fexceptions" ] ++
stdenv.lib.optionals stdenv.isDarwin [
"--disable-ppl_lcdd" "--disable-ppl_lpsol" "--disable-ppl_pips"
];
patches = [ ./upstream-based.patch ];