On Sun, Mar 12, 2017 at 4:15 PM, Fred van Stappen <fi...@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
_______________________________________________
fpc-other maillist  -  fpc-other@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-other

Reply via email to