Can you answer a question I haven't been able to answer? Where do I set the location of fpc.cfg in a Lazarus installation (in my case, Linux)? I have an installation and would like to change the location of fpc.cfg. Where should it be set?
Thanks.
Off, topic to the original question. So maybe - if there is more on it - open a new thread.
I don't think you can. There isn't a dedicated setting for it. You have to tell FPC by passing custom argument to it (project options, custom options).
The only thing I could find
https://www.freepascal.org/docs-html/user/userap1.htmlUsing "@" to specify an additional fpc.cfg. But that does not replace the original? (Don't know)
The alternative is what fpcupdeluxe afaik does: create a script that calls fpc with that argument, then use that script as your compiler. (it needs to pass on all arguments that it receives)