Merge pull request #318166 from rhelmot/freebsd-perl-cross

perl: explicitly tell FreeBSD cross that crypt is available
This commit is contained in:
John Ericson 2024-06-17 17:34:23 -04:00 committed by GitHub
commit 6389a88c08
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -115,6 +115,11 @@ stdenv.mkDerivation (rec {
"-Dprefix=${placeholder "out"}"
"-Dman1dir=${placeholder "out"}/share/man/man1"
"-Dman3dir=${placeholder "out"}/share/man/man3"
]
++ lib.optionals (stdenv.isFreeBSD && crossCompiling && enableCrypt) [
# https://github.com/Perl/perl5/issues/22295
# configure cannot figure out that we have crypt automatically, but we really do
"-Dd_crypt"
];
configureScript = lib.optionalString (!crossCompiling) "${stdenv.shell} ./Configure";