[fpc-other] How to set library search path ?
silvioprog
silvioprog at gmail.com
Sun Mar 12 20:21:50 CET 2017
On Sun, Mar 12, 2017 at 4:15 PM, Fred van Stappen <fiens at hotmail.com> wrote:
>
> Hello.
>
> Is it possible to set the search-path for library without to edit-change
> the config file ?
>
> For example, in Linux, you should edit .bash_profile and add:
>
> LD_LIBRARY_PATH=/usr/local/lib
> export LD_LIBRARY_PATH
>
> But is it possible to set that library path without to edit a file, only
> by command (via a TProcess) ?
>
[...]
Did you try the TProcess.Environment? :-)
Another way is passing before compiling: $ LD_LIBRARY_PATH=some-path make
blah
--
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-other/attachments/20170312/782af2e5/attachment.html>
More information about the fpc-other
mailing list