Michael Van Canneyt wrote:
- fpc/lazarus uses these library files just as it would
  internal functions...
That is impossible. (or you use "internal functions" entirely the wrong
way).
Why impossible ?

At compile time, the compiler could decide whether the function is "internal"
ie within the lazarus library files, or "external" within the users library
directory.

This is not something the compiler should decide. It should compile code,
period.
Right. That is technically correct.

The linker, "ld" actually decides where it needs to pull in the appropriate library code from.
All the rest should be outside the compiler, in an installer system.
That may well be.

But what calls the linker "ld" ?
This is the kind of stuff that fppkg is meant to solve.
Maybe that is the right place for it.

David

Reply via email to