[0.000] Configfile search: /home/s/.fpc.cfg
[0.000] Configfile search: /tmp/FPC_LAZ/fpc-main/etc/fpc.cfg
[0.000] Configfile search: /etc/fpc.cfg
[0.000] Reading options from file /etc/fpc.cfg
[0.000] Hint: Start of reading config file /etc/fpc.cfg
That is probably part of the problem, as I do not see how to prevent it to search config file on pultiple praces. It is on all these places, but this custom one is here: /tmp/FPC_LAZ/fpc-main/etc/fpc.cfg
Well, it picking up /etc/fpc.cfg is not what you want.
Good question why it isn't picking the one in tmp up... Assuming read/write perm are given?
(You still have an issue if that runs on a box that has a config in /home/*/.fpc.cfg => for that the file could also be given via command line / fpcupdeluxe does that with a wrapper script, and the IDE gets the script as compiler exe)
I have a similar setup on some of my boxes, where the conf is in ../etc/fpc.cfg relative to the compiler.
Though not in temp / I actually have the ppcx in a diff folder. I don't recall why. I ended up with that after trial and error many many years ago...
I have (in the folder "/home/me/fpc/rel_3.2.2/64/def")
def/bin/fpc
def/bin/ppcx64 -> /home/me/fpc/rel_3.2.2/64/def/lib/fpc/3.2.2/ppcx64
def/etc/fpc.cfg
(2nd is a symlink, but no idea why, or if actually required)
I also don't know if the directories in the fpc.cfg can be relative, or must be absolute....