Code::Blocks assumes an two stage build method is used.
1. Stage one creates object file(s)
2. Stage two uses the object file(s) to create an output file
Linker options are used in stage two
Compiler options are used in stage one
Is the option you wish to add an linker or compiler option?
Try adding the option to the project/target other options for the correct stage.
Edit2: Link I post for adding non C/C++ support it might help if you have no knowledge of advanced compiler settings area
https://wiki.codeblocks.org/index.php/Adding_support_for_non_C/C%2B%2B_files_to_the_build_systemTim S.