From d76ec523bb78af1f4c651025b27b6e9152c10662 Mon Sep 17 00:00:00 2001 From: zimbatm Date: Mon, 12 Nov 2018 00:08:18 +0100 Subject: [PATCH] use for cross-compilation --- pkgs/build-support/libredirect/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/build-support/libredirect/default.nix b/pkgs/build-support/libredirect/default.nix index 389abec982e0..0c24dbeb2070 100644 --- a/pkgs/build-support/libredirect/default.nix +++ b/pkgs/build-support/libredirect/default.nix @@ -6,7 +6,7 @@ stdenv.mkDerivation { unpackPhase = "cp ${./libredirect.c} libredirect.c"; buildPhase = '' - cc -Wall -std=c99 -O3 -shared libredirect.c -o libredirect.so -fPIC -ldl + $CC -Wall -std=c99 -O3 -shared libredirect.c -o libredirect.so -fPIC -ldl ''; installPhase = "mkdir -p $out/lib; cp libredirect.so $out/lib";