On 12/02/14 12:20, Sven Barth wrote:
Am 12.02.2014 10:01, schrieb patspiper:
On 12/02/14 10:03, Sven Barth wrote:
Am 11.02.2014 23:19, schrieb Mattias Gaertner:
Hi,

How does the compiler (2.6.2, 2.6.4, 2.7.1) search for sub tools like
fpcres?

For example: first in its working directory, then in PATH, etc.
Usual order is this:
- path specified by -FD
- path of compiler executable (ppcXXX)
- PATH variable (or "Commands" on Mac OS Classic)

What parameters effects this search? -Xp?
No, -FD is the parameter for this.

Isn't -FD used for the binutils/crossbinutils?

If so, then how are the tools which are in the fpc (not ppcxxx) executable folder (such as fpcres) located?
To quote myself:

Usual order is this:
- path specified by -FD
- path of compiler executable (ppcXXX)
- PATH variable (or "Commands" on Mac OS Classic)

If -FD<toolspath> and -XP<binutilsprefix> are specified, then fpc searches for '<binutilsprefix>-fpcres' in <toolspath> and PATH, and if it does not find it there, searches for 'fpcres' in PATH only. Is it intentional that it excludes <toolspath> from the latter search?

Related code is in comprsrc.pas function tresourcefile.compile.

Stephano
_______________________________________________
fpc-devel maillist  -  fpc-devel@lists.freepascal.org
http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to