openssl: don't build tests if check is disabled (#458164)

This commit is contained in:
Grimmauld
2025-11-08 11:29:59 +00:00
committed by GitHub
@@ -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"