JuliaLang/julia — comment on commit dad6f7594fe78a8bae20b4462cf071b48a12f0f4
File:  line 0
By JeffBezanson:

Try adding `-Wl,-rpath -Wl,$(DESTDIR)/usr/share/julia/lib` to the command that links the executable. Of course this means `DESTDIR` has to be available during build and not just install. We can also add an rpath for `current_dir/lib`. And probably a different command is needed on Mac OS.