skarnet: Invoke compile as 'cc' for wider support.

Darwin stdenv uses clang, which can be invoked as 'cc' but not 'gcc'.
This commit is contained in:
Patrick Mahoney 2014-11-28 13:11:36 -06:00
parent cf5f282940
commit a61293e659

View File

@ -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