blas: fix library id on darwin for cblas

This commit is contained in:
Dmitry Kalinkin 2021-09-02 21:38:18 -04:00
parent e89bf40282
commit b27cb06557
No known key found for this signature in database
GPG Key ID: 5157B3EC8B2CA333

@ -115,7 +115,7 @@ EOF
patchelf --set-rpath "$(patchelf --print-rpath $out/lib/libcblas${canonicalExtension}):${lib.getLib blasProvider}/lib" $out/lib/libcblas${canonicalExtension}
'' else if stdenv.hostPlatform.isDarwin then ''
install_name_tool \
-id libcblas${canonicalExtension} \
-id $out/lib/libcblas${canonicalExtension} \
-add_rpath ${lib.getLib blasProvider}/lib \
$out/lib/libcblas${canonicalExtension}
'' else "") + ''