[fpc-pascal] Library packages
Adriaan van Os
adriaan at adriaan.biz
Mon Oct 28 20:39:04 CET 2024
Sven Barth via fpc-pascal wrote:
> The main difference is that a program or library compiled without
> dynamic packages will each have a statically linked copy of the RTL (and
> any other code it uses). If a binary uses dynamic packages then the
> binary itself will not contain code that is contained in one of the used
> runtime packages. Binaries are relatively free to decide which packages
> it uses, except for the RTL package which always must be used if
> packages are to be used (because the core units like System then need to
> recide in a separate library, so that other packages and the main binary
> can use them).
> The options involved are -Fpxxx to set the path to search for pcp files
> (the metadata equivalent of a ppu for dynamic packages) and -FPxxx to
> specify which packages to use.
OK. Thanks for the info.
Regards,
Adriaan van Os
More information about the fpc-pascal
mailing list