Without wanting to divert the thread, I can confirm that -k (or the equivalent, as shown, from the Lazarus IDE) is useful for all sorts of things.
The important thing is no extra spaces, and the right number of dashes as required by the linker.
MarkMLl