CodeBlocks has no option to send options to the resource compiler (but probably should). You can put the option in Compiler Settings, Other, Advanced options, Compile Win32 Resource File, or as you said after windres.exe. Doing this will send it to all programs compiled with the resource compiler.
What does GCC need that other resource compilers don't? Resource files don't usually contain options that are compiler specific.