gp program.pas = gpc --automake -o program program.pas gp unit.pas = gpc --automake -c unit.pas
The latter brings me to the following for gp (see gp --help)
-c Compile only, do not link (default if main source file is a unit or module rather than a program)
As far as I know, the opposite switch is not available, namely to compile *and link* a unit. This is useful when compiling a unit into a shared library, while still using the specs file instead of a separate ld run (which could be less compatible).
Of course, I can write a patch for gp to add this feature. Any suggestions for the switch to use ?
Regards,
Adriaan van Os