参考
https://bugs.gentoo.org/507226
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=37454
https://github.com/Kitware/CMake/commit/9ef3f8e82036a28c4f0375ec65eb25864a5240ca
https://stackoverflow.com/questions/26884574/questions-about-gcc-unrecognized-option-rdynamic
错误
cmake 出现"gcc: unrecognized option `-rdynamic’"
-rdynamic
这个选项的意义是,向ELF链接器发送一个标记:‘-export-dynamic’,当然发送的前提是链接器支持这个标记。This instructs the linker to add all symbols, not only used ones, to the dynamic symbol table. This option is needed for some uses of dlopen or to allow obtaining backtraces from within a program.
但是需要注意:
因为这个选项受某些gcc本身编译时的