[fpc-devel] fpcmkcfg and fpc.cfg questions

Ben Grasset operator97 at gmail.com
Mon Mar 25 22:34:07 CET 2019


On Sun, Mar 24, 2019 at 6:22 PM Bart <bartjunk64 at gmail.com> wrote:

> Extract from fpc.cfg from 3.0.4 (created by offcial installer)
> # searchpath for units and other system dependent things
> -FuC:\devel\fpc\3.0.4/units/$fpctarget
> -FuC:\devel\fpc\3.0.4/units/$fpctarget/*
> -FuC:\devel\fpc\3.0.4/units/$fpctarget/rtl
>
> Extract from fpc.cfg from fpc trunk: created with fpcmkcfg.exe (from trunk)
> # searchpath for units and other system dependent things
> -Fu/units/$fpctarget
> -Fu/units/$fpctarget/*
> -Fu/units/$fpctarget/rtl
>

The fpc.cfg created by the installer is correct. The one created by default
by fpcmkcfg is not (for Windows), as the relative-but-not-really paths like
that have no meaning on Windows.

To be properly cross-platform, it should really generate something like
"-Fu..\..\units\$fpctarget" and such, if the assumption is that it's being
invoked from the "bin\$fpctarget" directory.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190325/60c18088/attachment.html>


More information about the fpc-devel mailing list