If you use FPC directly you simply pass -WR on the command line.
In Lazarus you have this option available in Project Settings -> Compiler Settings -> Compilation and Linking -> Unit Style. And even if it wouldn't be available in the UI you can add custom options (like on the command line) in Project Settings -> Compiler Settings -> Custom Settings.