Unverified Commit 12a4db11 authored by @mjones's avatar @mjones Committed by GitHub
Browse files

cryptsetup: move NIX_LDFLAGS into env for structuredAttrs (#488505)

parents 2448af50 345b81de
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -56,7 +56,9 @@ stdenv.mkDerivation (finalAttrs: {
    substituteInPlace tests/unit-utils-io.c --replace "| O_DIRECT" ""
  '';

  NIX_LDFLAGS = lib.optionalString (stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) "-lgcc_s";
  env = lib.optionalAttrs (stdenv.cc.isGNU && !stdenv.hostPlatform.isStatic) {
    NIX_LDFLAGS = "-lgcc_s";
  };

  configureFlags = [
    "--with-crypto_backend=openssl"