Unverified Commit 6389a88c authored by John Ericson's avatar John Ericson Committed by GitHub
Browse files

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

perl: explicitly tell FreeBSD cross that crypt is available
parents a801d7b2 f6e67788
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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";