git.iko.soy/typeable/nixpkgs
on master help sign in
cvc4: fix the build by skipping line markers in cpp expansions during configure, helps the configure script to find Boost version
commit016d523d8260d867ea4a2f2e4a6675c873fb9866 authorMichael Raskin <7c6f434c@mail.ru> dateThu 31 Mar 2016, 01:52 (11 years ago) parent254e2cc
1 file changed+6−1
pkgs/applications/science/logic/cvc4/default.nix+6−1
pkgs/applications/science/logic/cvc4/default.nix+6−1
@@ -10,7 +10,12 @@ stdenv.mkDerivation rec {
1010 };
1111
1212 buildInputs = [ gmp libantlr3c boost autoreconfHook ];
13− preConfigure = "patchShebangs ./src/";
13+ preConfigure = ''
14+ patchShebangs ./src/
15+ OLD_CPPFLAGS="$CPPFLAGS"
16+ export CPPFLAGS="$CPPFLAGS -P"
17+ '';
18+ postConfigure = ''CPPFLAGS="$OLD_CPPFLAGS"'';
1419 doChecks = true;
1520
1621 meta = with stdenv.lib; {