已合并
add Bsymbolic-functions for tensorpipe #83
王超创建于 2025年12月20日
add Bsymbolic-functions for tensorpipe #83
已合并
共 1 个文件变更+2-0
| @@ -221,6 +221,8 @@ if(BUILD_SHARED_LIBS) | |||
| 221 | set_target_properties(tensorpipe PROPERTIES POSITION_INDEPENDENT_CODE 1) | 221 | set_target_properties(tensorpipe PROPERTIES POSITION_INDEPENDENT_CODE 1) |
| 222 | endif() | 222 | endif() |
| 223 | 223 | ||
| 224 | +target_link_options(tensorpipe PRIVATE "-Wl,-Bsymbolic-functions") | ||
| 225 | + | ||
| 224 | # Add all the link libraries and include directories to the tensorpipe target and keeping the link PUBLIC | 226 | # Add all the link libraries and include directories to the tensorpipe target and keeping the link PUBLIC |
| 225 | target_link_libraries(tensorpipe PRIVATE ${TP_LINK_LIBRARIES}) | 227 | target_link_libraries(tensorpipe PRIVATE ${TP_LINK_LIBRARIES}) |
| 226 | target_include_directories(tensorpipe PUBLIC ${TP_INCLUDE_DIRS}) | 228 | target_include_directories(tensorpipe PUBLIC ${TP_INCLUDE_DIRS}) |