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

silvioprog silvioprog at gmail.com
Mon Mar 13 18:38:38 CET 2017


On Mon, Mar 13, 2017 at 2:16 PM, Fred van Stappen <fiens at hotmail.com> wrote:

> But what about if liba has dependencies with no path defined:
>
> --->  handle = dlopen("../libb/libb.so", RTLD_LAZY); ---> ok it works but
> the path was defined.
>
> But if no path was defined, IMO it will work only if libb.so is in
> /usr/lib/ or usr/local/lib.
>
What about this new attached example (III)?

- fpc loads liba/liba and calls their funcs;
- liba loads dep libb from a path predefined in the app and calls its func;
- libb loads dep liba from a path predefined in the app and calls its func.

If that doesn't work either, I don't know what to do, because there is no
way the system guess where your libraries are located. o.o'

-- 
Silvio Clécio
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-other/attachments/20170313/500039b7/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dl3.tar.gz
Type: application/x-gzip
Size: 978 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-other/attachments/20170313/500039b7/attachment-0001.bin>


More information about the fpc-other mailing list