[fpc-pascal] Prevent full unit path in ppu files? together with -Ur
Joost van der Sluis
joost at cnoc.nl
Mon Apr 13 17:14:21 CEST 2020
Op 12-04-2020 om 17:26 schreef Martin Frb
> On 12/04/2020 16:31, Martin wrote:
>> When building packages for an installer, one uses -Ur.
>> Therefore the question: Can that full path be prevented from getting
>> into the ppu (or any other file)?
>>
>
> Just digging a bit deeper, searching all files indicates that this full
> path is stored in *.fpm files
That's intentional. That way you can re-compile the package, when one of
the packages that this package depends on has been changed.
Note that you should never pack this file, that would be useless.
Unless if you want to distribute a binary version of a fpmake-package.
You have to add the -fsp parameter to the fpmake-executable to provide
the path to the sources. The official fpc-releases should do so...
Regards,
Joost.
More information about the fpc-pascal
mailing list