m4rie: fix build on aarch64-darwin

It appears m4rie only builds properly on Apple Clang; turning off
optimizations seems to resolve the failing test cases. See
https://bitbucket.org/malb/m4rie/issues/23/trying-to-compile-on-apple-m1
This commit is contained in:
George Huebner 2023-10-25 20:51:59 -05:00
parent a649e0e5f7
commit 178fe4e17f
No known key found for this signature in database
1 changed files with 3 additions and 2 deletions

View File

@ -21,6 +21,9 @@ stdenv.mkDerivation rec {
m4ri
];
# does not compile correctly with -O2 on LLVM clang; see
# https://bitbucket.org/malb/m4rie/issues/23/trying-to-compile-on-apple-m1
makeFlags = [] ++ lib.optionals stdenv.isDarwin [ "CFLAGS=-O0" ];
nativeBuildInputs = [
autoreconfHook
];
@ -35,7 +38,5 @@ stdenv.mkDerivation rec {
license = licenses.gpl2Plus;
maintainers = teams.sage.members;
platforms = platforms.unix;
# never built on aarch64-darwin since first introduction in nixpkgs
broken = stdenv.isDarwin && stdenv.isAarch64;
};
}