[fpc-pascal] Something like TProcess.Environment for libraries ?

fredvs fiens at hotmail.com
Thu Mar 30 17:39:52 CEST 2017


Huh, sorry to come back with this but...

Loadlibrary() for a sub-dependency works. ;-)

For example:
libopusfile.so has libopus.so as dependency.

So, before to loadlibrary(libopusfile.so), do --> loadlibrary(libopus.so),
keeping the original file-name.

Example:

loadlibrary(/directory/of/libopus.so) ; // do not change file-name.
loadlibrary(/directory/of/Mylibopusfile.so) ; // here you may change the
file-name.

PS: It works for how many sub-dependencies the main library has (but you
have to respect the order of loading).

Yep ;-)

Fre;D



-----
Many thanks ;-)
--
View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Something-like-TProcess-Environment-for-libraries-tp5727468p5728041.html
Sent from the Free Pascal - General mailing list archive at Nabble.com.



More information about the fpc-pascal mailing list