Commit 5d006774 authored by Ihar Hrachyshka's avatar Ihar Hrachyshka
Browse files

openssl: help build system to detect cross builds

Specifically, some tests that rely on build and host platforms using the
same libc will then be skipped.
parent 77cfa063
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -191,6 +191,11 @@ let
            "--openssldir=/.$(etc)/etc/ssl"
        )
      ]
      # Tell build system it's cross environment. This allows to skip tests
      # that would fail when libc is different. Otherwise, run the tests.
      ++ lib.optional (
        !lib.systems.equals stdenv.buildPlatform stdenv.hostPlatform
      ) "--cross-compile-prefix=${lib.getBin stdenv.cc}/bin/"
      ++ lib.optionals withCryptodev [
        "-DHAVE_CRYPTODEV"
        "-DUSE_CRYPTODEV_DIGESTS"