JuliaLang/julia — pull request #1602 by nolta (2012-11-25 01:59:13+00:00)
Title: RFC: fix `make dist` on linux; lib reorg

This patch set does a few things:

* Fixes `make dist` on linux (hopefully), by making sure library rpaths are all relative. Does this by adding `patchelf` to deps, which is essentially the linux equivalent of darwin's `install_name_tool`.
* Hoists `libjulia-*` from `$(PREFIX)/lib/julia` to `$(PREFIX)/lib`.
* Hides all other libraries in `$(PREFIX)/lib/julia`, not just some of them.
* Sets `libjulia-release.so.0` soname.

This mucks w/ the recent debian reorg patches, so i may have broken something inadvertently. My feeling is that the division of libraries between public & private is better handled by the install stage, not the build stage.