3 ms·
Thanks for the links! If my executable relies on .so files in a lib directory, is it possible to set env variables to point to a local path?
by codewithcheese 11y ago
Thanks for the links! If my executable relies on .so files in a lib directory, is it possible to set env variables to point to a local path?
- hendzen 11y agoWhy would you need to do that? Just set DT_RUNPATH when you link the binary and use the $ORIGIN variable to set a relative path.
- girvo 11y agoIs there anywhere that has decent documentation on how to do that? I'm not very good with compiling and linking C, and have been trying to work out some distribution issues with a project I was working on in a compile-to-c language, where it relies on a dynamically linked shared library that I want to distrubute along with it.
- hendzen 11y agoI would read section 3.9 of Ulrich Drepper's "How to Write Shared Libraries" [0]. [0] - http://www.akkadia.org/drepper/dsohowto.pdf http://www.akkadia.org/drepper/dsohowto.pdf