Re: Something like TProcess.Environment for libraries ?
> After googling, I found that it is possible to use a parameter for the
> 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 standard dir (gcc option):
> Could it be possible to fpc to use that option while linking ?
FPC's way to pass custom parameters to the linker is using the -k
parameter: -k-rpath -k$(DEFAULT_LIB_INSTALL_PATH), or "-k-rpath
On 30/01/17 12:27, fredvs wrote:
> Hello Jonas.
>> -k-rpath -k$(DEFAULT_LIB_INSTALL_PATH), or "-k-rpath
> Ok, excellent.
> Does it work while linking libraries too ?
> Is it cross-platform (does it work for Windows too) ?
No. It doesn't work for OS X either. On neither of those platforms that
option would make any sense, as they use different ways to look for