Unverified Commit 0ca24a8d authored by Artturi's avatar Artturi Committed by GitHub
Browse files

Merge pull request #257118 from szlend/libmcrypt-cross-fix

parents aa4692f6 3407165c
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -11,8 +11,12 @@ stdenv.mkDerivation rec {

  buildInputs = lib.optional stdenv.isDarwin darwin.cctools;

  configureFlags = lib.optionals disablePosixThreads
    [ "--disable-posix-threads" ];
  configureFlags = lib.optionals disablePosixThreads [ "--disable-posix-threads" ]
    ++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
      # AC_FUNC_MALLOC is broken on cross builds.
      "ac_cv_func_malloc_0_nonnull=yes"
      "ac_cv_func_realloc_0_nonnull=yes"
    ];

  meta = {
    description = "Replacement for the old crypt() package and crypt(1) command, with extensions";