Merge pull request #113394 from SuperSandro2000/nmap-cross
liblinear: fix cross compile
This commit is contained in:
commit
c9150d6eeb
@ -13,6 +13,12 @@ in stdenv.mkDerivation rec {
|
|||||||
sha256 = "0p0hpjajfkskhd7jiv5zwhfa8hi49q3mgifjlkqvy99xspv98ijj";
|
sha256 = "0p0hpjajfkskhd7jiv5zwhfa8hi49q3mgifjlkqvy99xspv98ijj";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace blas/Makefile \
|
||||||
|
--replace "ar rcv" "${stdenv.cc.targetPrefix}ar rcv" \
|
||||||
|
--replace "ranlib" "${stdenv.cc.targetPrefix}ranlib"
|
||||||
|
'';
|
||||||
|
|
||||||
outputs = [ "bin" "dev" "out" ];
|
outputs = [ "bin" "dev" "out" ];
|
||||||
|
|
||||||
nativeBuildInputs = lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
|
nativeBuildInputs = lib.optionals stdenv.isDarwin [ fixDarwinDylibNames ];
|
||||||
|
Loading…
Reference in New Issue
Block a user