[fpc-devel] fpcmkcfg and fpc.cfg questions

Sven Barth pascaldragon at googlemail.com
Tue Mar 26 07:32:33 CET 2019


Am 26.03.2019 um 01:08 schrieb Ben Grasset:
> On Mon, Mar 25, 2019 at 5:34 PM Ben Grasset <operator97 at gmail.com 
> <mailto:operator97 at gmail.com>> wrote:
>
>     To be properly cross-platform, it should really generate something
>     like "-Fu..\..\units\$fpctarget"
>
>
> I meant to say, "generate something like that specifically for 
> Windows." Perhaps just have an IFDEF UNIX .... ELSE .... ENDIF block 
> to cover everything.
Those paths are not handled relative to the compiler binary, they are 
handled relative to the current directory when calling the compiler. The 
compiler does not differentiate whether a parameter is passed in by the 
configuration or by command line argument, they are handled the same 
(except for macro expansion). So using relative paths in the 
configuration is more often than not a bad idea (TM).

Regards,
Sven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20190326/c3493716/attachment.html>


More information about the fpc-devel mailing list