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

authored by Peder Bergebakken Sundt and committed by GitHub 533ea474 8e62bafa

+7 -2
+7 -2
pkgs/by-name/ec/ecm/package.nix
··· 26 substituteInPlace test.ecm --replace /bin/rm rm 27 ''; 28 29 - # See https://trac.sagemath.org/ticket/19233 30 - configureFlags = lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc"; 31 32 buildInputs = [ 33 m4
··· 26 substituteInPlace test.ecm --replace /bin/rm rm 27 ''; 28 29 + configureFlags = [ 30 + # Otherwise, undesired flags from gmp (such as -std=c99) are leaking 31 + "-enable-gmp-cflags=false" 32 + ] 33 + ++ 34 + # See https://trac.sagemath.org/ticket/19233 35 + lib.optional stdenv.hostPlatform.isDarwin "--disable-asm-redc"; 36 37 buildInputs = [ 38 m4