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

Jonas Maebe jonas at freepascal.org
Mon Jan 30 07:22:42 CET 2017

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


More information about the fpc-pascal mailing list