libkrb5: fix BSD cross-compilation
For Linux and Darwin, it uses $(CC), but for BSD it hardcodes ld for some reason.
This commit is contained in:
parent
637a1f98b5
commit
dcb1b49be6
|
@ -57,6 +57,11 @@ stdenv.mkDerivation rec {
|
|||
|
||||
sourceRoot = "krb5-${version}/src";
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace config/shlib.conf \
|
||||
--replace "'ld " "'${stdenv.cc.targetPrefix}ld "
|
||||
'';
|
||||
|
||||
libFolders = [ "util" "include" "lib" "build-tools" ];
|
||||
|
||||
buildPhase = lib.optionalString libOnly ''
|
||||
|
|
Loading…
Reference in a new issue