From 30962765e07336eecfe959d5834f8d4eecc56df4 Mon Sep 17 00:00:00 2001 From: aszlig Date: Mon, 10 Mar 2014 22:27:54 +0100 Subject: [PATCH] openssl/cross: Fix build for Darwin. This is just a minor fix, because when using "darwin64-x86_64-cc" for config.openssl.system, the OpenSSL build scripts try to compile with $prefix-cc, which is not available with the gcc-cross-wrapper. Signed-off-by: aszlig --- pkgs/development/libraries/openssl/default.nix | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/libraries/openssl/default.nix b/pkgs/development/libraries/openssl/default.nix index 7d7ccacd14a..4dd63078d66 100644 --- a/pkgs/development/libraries/openssl/default.nix +++ b/pkgs/development/libraries/openssl/default.nix @@ -91,6 +91,8 @@ stdenv.mkDerivation { rm $out/bin/c_rehash $out/ssl/misc/CA.pl $out/ssl/misc/tsget ''; configureScript = "./Configure"; + } // stdenv.lib.optionalAttrs (opensslCrossSystem == "darwin64-x86_64-cc") { + CC = "gcc"; }; meta = {