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:
parent
cf5f282940
commit
a61293e659
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user