liblinear: fix cross compile
This commit is contained in:
parent
5852a21819
commit
2cdb858695
1 changed files with 6 additions and 0 deletions
|
@ -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 ];
|
||||
|
|
Loading…
Reference in a new issue