Merge pull request #2522 from jwiegley/ppl
Build ppl and gmp correctly for building gcc48 on darwin
This commit is contained in:
commit
439482cfc1
@ -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;
|
||||
|
@ -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 ];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user