[fpc-devel]free pascal config files

Michael Van Canneyt michael.vancanneyt at wisa.be
Thu Aug 8 11:50:41 CEST 2002


On Thu, 8 Aug 2002, Jork Loeser wrote:

> Hi,
>
> I just installed free pascal/Linux in a local directory
> (/home/jork/usr/...) and it seems that fpc does *not* read ~/.fpc.cfg. It
> also seems it does not read ./fpc.cfg. After copying ~/.fpc.cfg to fpc.cfg
> in another directory and setting PPC_CONFIG_PATH to this directory it
> works. Am I doing wrong or is this really bad behavior of fpc?

It works correctly (tested with 1.0.6/1.0.7)

stat("ppc386.cfg", 0xbfffefb8)          = -1 ENOENT (No such file or directory)
stat("/home/michael/.ppc386.cfg", 0xbfffefb8) = -1 ENOENT (No such file or directory)
stat("/etc/ppc386.cfg", 0xbfffefb8)     = -1 ENOENT (No such file or directory)
stat("fpc.cfg", 0xbfffefb8)             = -1 ENOENT (No such file or directory)
stat("/home/michael/.fpc.cfg", {st_mode=S_IFIFO|S_ISGID, st_size=0, ...}) = 0

BUT

if a file ~/.ppc386.cfg exists, then that will be read first (for compatibility
with earlier versions) and ~/.fpc.cfg will *not* be read. So make sure that you
remove ~/.ppc386.cfg

Michael.





More information about the fpc-devel mailing list