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:
Alyssa Ross 2023-01-25 21:46:17 +00:00
parent 637a1f98b5
commit dcb1b49be6

View file

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