Build ppl and gmp correctly for building gcc48 on darwin
This commit is contained in:
parent
cdadc70e5d
commit
4cb43d2a75
@ -15,7 +15,8 @@ stdenv.mkDerivation rec {
|
|||||||
# (x86), except on Solaris where some tests crash with "Memory fault".
|
# (x86), except on Solaris where some tests crash with "Memory fault".
|
||||||
# See <http://hydra.nixos.org/build/2760931>, for instance.
|
# See <http://hydra.nixos.org/build/2760931>, for instance.
|
||||||
(stdenv.lib.optional (!stdenv.isSunOS) "--enable-fat")
|
(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 []);
|
++ (if stdenv.is64bit then [ "--with-pic" ] else []);
|
||||||
|
|
||||||
doCheck = true;
|
doCheck = true;
|
||||||
|
@ -13,7 +13,10 @@ stdenv.mkDerivation rec {
|
|||||||
nativeBuildInputs = [ perl gnum4 ];
|
nativeBuildInputs = [ perl gnum4 ];
|
||||||
propagatedBuildInputs = [ gmpxx ];
|
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 ];
|
patches = [ ./upstream-based.patch ];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user