R: fix dylib install_name (#113002)

Co-authored-by: zseri <zseri.devel@ytrizja.de>
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
idontgetoutmuch 2021-02-15 02:08:02 +00:00 committed by GitHub
parent 8dcc404e11
commit 5eabb050be
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -33,7 +33,10 @@ stdenv.mkDerivation rec {
];
prePatch = lib.optionalString stdenv.isDarwin ''
substituteInPlace configure --replace "-install_name libR.dylib" "-install_name $out/lib/R/lib/libR.dylib"
substituteInPlace configure \
--replace "-install_name libRblas.dylib" "-install_name $out/lib/R/lib/libRblas.dylib" \
--replace "-install_name libRlapack.dylib" "-install_name $out/lib/R/lib/libRlapack.dylib" \
--replace "-install_name libR.dylib" "-install_name $out/lib/R/lib/libR.dylib"
'';
dontDisableStatic = static;