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

2017-03-30 Thread fredvs
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:

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

2017-01-31 Thread fredvs
Many thanks for your light Jonas. Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Something-like-TProcess-Environment-for-libraries-tp5727468p5727536.html Sent from the Free Pascal - General mailing list archive at Nabble.com.

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

2017-01-30 Thread Jonas Maebe
On 30/01/17 12:27, fredvs wrote: Hello Jonas. -k-rpath -k$(DEFAULT_LIB_INSTALL_PATH), or "-k-rpath $(DEFAULT_LIB_INSTALL_PATH)" Ok, excellent. Does it work while linking libraries too ? Yes. > Is it cross-platform (does it work for Windows too) ? No. It doesn't work for OS X either. On

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

2017-01-30 Thread fredvs
Re-hello. Is it cross-platform (does it work for Windows too) ? Fre;D - Many thanks ;-) -- View this message in context: http://free-pascal-general.1045716.n5.nabble.com/Something-like-TProcess-Environment-for-libraries-tp5727468p5727525.html Sent from the Free Pascal - General mailing

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

2017-01-30 Thread fredvs
Hello Jonas. > -k-rpath -k$(DEFAULT_LIB_INSTALL_PATH), or "-k-rpath > $(DEFAULT_LIB_INSTALL_PATH)" Ok, excellent. Does it work while linking libraries too ? Thanks. Fre;D - Many thanks ;-) -- View this message in context:

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

2017-01-29 Thread Jonas Maebe
fredvs wrote: > After googling, I found that it is possible to use a parameter for the > linker: > http://stackoverflow.com/questions/2726993/how-to-specify-preference-of-library-path > > For a c program: > > "Use the rpath option via gcc to linker - runtime library search path, will > be used

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

2017-01-29 Thread fredvs
Hello. After googling, I found that it is possible to use a parameter for the linker: http://stackoverflow.com/questions/2726993/how-to-specify-preference-of-library-path For a c program: "Use the rpath option via gcc to linker - runtime library search path, will be used instead of looking in