[fpc-other] How to set library search path ?

Fred van Stappen fiens at hotmail.com
Mon Mar 13 21:15:48 CET 2017


@ Silvio, I extremely appreciate your help. Many thanks.


>> Is it possible to set the search-path for library without to edit-change the config file

> No, since then having a search path at all would provide no security valueat all, since all "infected" programs could just change it.


Aaaargh, this is a very sad news (even if I understand why).


Hum, I have try this with a TProcess, without root access, before to LoadLibrary(lib_with_dependency) and it seems to work in Linux:


echo "export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/the/path/of/dependency" >> ~/.bashrc

What do you think about it ?


Many thanks for help.


Fre;D
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-other/attachments/20170313/6ef4b11f/attachment.html>


More information about the fpc-other mailing list