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:
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.
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-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
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:
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
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