3
0
Fork 0
forked from mirrors/nixpkgs

ntl: use a more "stable" fix for clang platforms

Always passing the configuration option should be simple and reliable.
See comments on https://github.com/NixOS/nixpkgs/commit/1bfbe76772b731
This commit is contained in:
Vladimír Čunát 2018-08-19 09:15:45 +02:00
parent cbf53f62a6
commit ef6b76ca7d
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA

View file

@ -21,10 +21,6 @@ stdenv.mkDerivation rec {
sha256 = "1pcib3vz1sdqlk0n561wbf7fwq44jm5cpx710w4vqljxgrjd7q1s";
};
patchPhase = stdenv.lib.optionalString stdenv.isDarwin ''
substituteInPlace DoConfig --replace g++ c++
'';
buildInputs = [
gmp
];
@ -52,6 +48,7 @@ stdenv.mkDerivation rec {
else
"generic" # "chooses options that should be OK for most platforms"
}"
"CXX=c++"
] ++ lib.optionals withGf2x [
"NTL_GF2X_LIB=on"
"GF2X_PREFIX=${gf2x}"