openssl: don't build tests if check is disabled

This commit is contained in:
Grimmauld
2025-11-03 18:24:17 +01:00
parent 69981fe5cc
commit fdfbb9d05c
@@ -239,7 +239,10 @@ let
# the code above, inhibiting `./Configure` from adding the
# conflicting flags.
"CFLAGS=-march=${stdenv.hostPlatform.gcc.arch}"
];
]
# tests are not being installed, it makes no sense
# to build them if check is disabled, e.g. on cross.
++ lib.optional (!finalAttrs.finalPackage.doCheck) "disable-tests";
makeFlags = [
"MANDIR=$(man)/share/man"