ecm: fix build via -enable-gmp-cflags=false (#437237)

This commit is contained in:
Peder Bergebakken Sundt
2025-09-03 21:09:35 +02:00
committed by GitHub
+7 -2
View File
@@ -26,8 +26,13 @@ stdenv.mkDerivation {
substituteInPlace test.ecm --replace /bin/rm rm
'';
# See https://trac.sagemath.org/ticket/19233
configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc";
configureFlags = [
# Otherwise, undesired flags from gmp (such as -std=c99) are leaking
"-enable-gmp-cflags=false"
]
++
# See https://trac.sagemath.org/ticket/19233
lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc";
buildInputs = [
m4