Merge pull request #113394 from SuperSandro2000/nmap-cross

liblinear: fix cross compile
This commit is contained in:
Daniël de Kok 2021-02-17 13:27:08 +01:00 committed by GitHub
commit c9150d6eeb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 ];