In my project I want to be able to log any operations of creating, deleting, truncating and renaming files so I have modified these files in Lazarus FPC (v.0.9.22 Win32):
$(FPCSrcDir)\rtl\win32\classes.pp
$(FPCSrcDir)\rtl\win32\sysutils.pp
$(FPCSrcDir)\rtl\win32\sysfile.inc
I have that path ($(FPCSrcDir)\rtl\win32\) added to the "Other Unit Files" and the "Include Files" search paths in IDE Compiler Options. That path is also added in fpc.cfg file from project directory:
-Fi$(FPCSrcDir)\rtl\win32\
-Fu$(FPCSrcDir)\rtl\win32\
When I compiled my project on the IDE logging is working fine, but when I compiled this from the command line, in destination application that modification is not included, so the compiler (and linker) took the original compiled units (.ppu).
How to force command line compiler (linker) to include modified units?