[fpc-pascal] Search path order for fpc.cfg
Michael Van Canneyt
michael at freepascal.org
Sat Apr 11 08:35:48 CEST 2020
On Fri, 10 Apr 2020, fredvs via fpc-pascal wrote:
>> Does fpc accept relative path for -Fu in the fpc.cfg config file, something
> No, it seems that it is not possible.
> So I propose to do this, dont hurt existing code, only gives happiness:
That will not happen.
Can *already* be specified and means relative to the CURRENT working directory, not the
compiler binary directory.
Your patch would change this behaviour, and that is not backwards compatible.
You can do
(or any other environment variable)
The compiler accepts this. We can add some extra macros there if you want,
but we will not change the behaviour of ./
But based on this and your other questions, IMO your reasoning is fundamentally
wrong, you should never rely on the compiler location.
Instead maybe you should explain what the actual problem is you are tying to
solve, then we can help you better instead of explaining what cannot or will
not be done.
After all, we've been doing this for 25+ years.
More information about the fpc-pascal