diff options
author | Patrick Mahoney <pat@polycrystal.org> | 2014-11-28 13:11:36 -0600 |
---|---|---|
committer | Patrick Mahoney <pat@polycrystal.org> | 2014-11-28 13:11:36 -0600 |
commit | a61293e65938518f05a92459c5ef9213bd7826cb (patch) | |
tree | fc72efa121450a896bd79bdc88b65440952bc9f7 /pkgs | |
parent | cf5f282940c9ac07533ef602e2ea415e1a5ed517 (diff) | |
download | nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.tar nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.tar.gz nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.tar.bz2 nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.tar.lz nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.tar.xz nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.tar.zst nixlib-a61293e65938518f05a92459c5ef9213bd7826cb.zip |
skarnet: Invoke compile as 'cc' for wider support.
Darwin stdenv uses clang, which can be invoked as 'cc' but not 'gcc'.
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/tools/build-managers/skarnet/setup-hook.sh | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkgs/development/tools/build-managers/skarnet/setup-hook.sh b/pkgs/development/tools/build-managers/skarnet/setup-hook.sh index 1c5c7efd4085..e9cd02a4e7e6 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 |