I have a small Pascal file which I'm compiling without linking (as it is being statically linked to other things later on by hand) and am trying to compile similar to the following:
fpc -Cn -oabcdef.o lib.pas
I was expecting the output to be named
abcdef.o however, it seems that due to the fact that I'm omitting the linking stage the -o flag gets ignored and the resutling binary is always named the same as the source file. Short of hacking a rename into my makefile, is there a way to control the output file name when omitting the linking stage? My compiler version is 3.0.4