From a61293e65938518f05a92459c5ef9213bd7826cb Mon Sep 17 00:00:00 2001 From: Patrick Mahoney Date: Fri, 28 Nov 2014 13:11:36 -0600 Subject: [PATCH] skarnet: Invoke compile as 'cc' for wider support. Darwin stdenv uses clang, which can be invoked as 'cc' but not 'gcc'. --- pkgs/development/tools/build-managers/skarnet/setup-hook.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pkgs/development/tools/build-managers/skarnet/setup-hook.sh b/pkgs/development/tools/build-managers/skarnet/setup-hook.sh index 1c5c7efd408..e9cd02a4e7e 100644 --- a/pkgs/development/tools/build-managers/skarnet/setup-hook.sh +++ b/pkgs/development/tools/build-managers/skarnet/setup-hook.sh @@ -16,6 +16,11 @@ skarnetConfigure() { > conf-install-library.so printf "$out/lib" > conf-install-sysdeps printf "$out/sysdeps" + # use generic 'cc' to support both gcc and clang (darwin) stdenvs + for file in conf-cc conf-dynld conf-ld; do + substituteInPlace $file --replace gcc cc + done + # let nix builder strip things, cross-platform truncate --size 0 conf-stripbins conf-striplibs