@@ -66,6 +66,13 @@ stdenv.mkDerivation rec {
6666 ++ stdenv.lib.optional (!pythonSupport) "--without-python"
6767 ++ stdenv.lib.optional multitarget "--enable-targets=all";
6868
69+ preConfigure =
70+ # Not sure why this is causing problems, now that the stdenv
71+ # exports CPP=cpp the build fails with strange errors on darwin.
72+ stdenv.lib.optionalString stdenv.cc.isClang ''
73+ unset CPP
74+ '';
75+
6976 postInstall =
7077 '' # Remove Info files already provided by Binutils and other packages.
7178 rm -v $out/share/info/bfd.info