error: unrecognized command line option '-rdynamic'
在工程顶部CMakeLists中,添加如下 set(CMAKE_SHARED_LIBRARY_LINK_C_FLAGS "") set(CMAKE_SHARED_LIBRARY_LINK_CXX_FLAGS "")