方式如下:
$ sudo vim /usr/share/cmake-3.7/Modules/Platform/Linux-GNU.cmake #set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-rdynamic") set(CMAKE_SHARED_LIBRARY_LINK_${lang}_FLAGS "-export-dynamic")