liblinear: fix cross compile

This commit is contained in:
Sandro Jäckel 2021-02-17 12:39:03 +01:00
parent 5852a21819
commit 2cdb858695
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -13,6 +13,12 @@ in stdenv.mkDerivation rec {
sha256 = "0p0hpjajfkskhd7jiv5zwhfa8hi49q3mgifjlkqvy99xspv98ijj";
};
postPatch = ''
substituteInPlace blas/Makefile \
--replace "ar rcv" "${stdenv.cc.targetPrefix}ar rcv" \
--replace "ranlib" "${stdenv.cc.targetPrefix}ranlib"
'';
outputs = [ "bin" "dev" "out" ];
nativeBuildInputs = lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];