julia03: link shared libraries privately

This commit is contained in:
Thomas Tuegel 2015-06-04 08:35:54 -05:00
parent fff0191f48
commit 5c9750e5bb

View File

@ -122,12 +122,12 @@ stdenv.mkDerivation rec {
preBuild = ''
# Link dynamically loaded shared libraries into output so they are found at runtime.
mkdir -p "$out/lib"
ln -s "${openblas}/lib/libopenblas.so" "$out/lib/libblas.so"
ln -s "${openblas}/lib/libopenblas.so" "$out/lib/liblapack.so"
ln -s "${suitesparse}/lib/libsuitesparse.so" "$out/lib/libsuitesparse.so"
mkdir -p "$out/lib/julia"
ln -s "${openblas}/lib/libopenblas.so" "$out/lib/julia/libblas.so"
ln -s "${openblas}/lib/libopenblas.so" "$out/lib/julia/liblapack.so"
ln -s "${suitesparse}/lib/libsuitesparse.so" "$out/lib/julia/libsuitesparse.so"
for i in umfpack cholmod amd camd colamd spqr; do
ln -s libsuitesparse.so "$out/lib/lib$i.so";
ln -s libsuitesparse.so "$out/lib/julia/lib$i.so";
done
'';