I write C/C++ with GCC/Clang, but know little about compiler options that starts with "-f".
For example, to turn on Address Sanitizer, I pass "-fno-omit-frame-pointer -fsanitize=address" to the compiler. This should both affect compile and link stages.
Another example, to turn on OpenMP, I pass "-fopenmp" to the compiler, which gives support of compile and link to shared openmp library.
If I use static openmp library, I should pass "-fopenmp" to the compiler, and pass "-fopenmp -static" to the linker. And this StackOverFlow answer says it means "-lgomp -lrt".
My question: is there any method to expand the "-f" started compile/options, thus I can know what exactly libraries this "-f" flag links to?