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
+2 -1
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;