首页 > 其他 > 详细

编译安装 gperftools

时间:2021-03-13 15:40:02      阅读:63      评论:0      收藏:0      [点我收藏+]

64 位的程序通常需要链接 libuwind,但是很多时候并不想链接这个lib,因此我们需要禁用这个lib
使用 configure 的方式

./autogen.sh
/configure --prefix=$TP_INSTALL_DIR/gperftools --disable-shared --enable-static --disable-libunwind --with-pic --enable-frame-pointers

使用cmake的方式

mkdir build
cd build && cmake .. -Dgperftools_enable_libunwind=OFF -Dgperftools_enable_frame_pointers=ON

编译安装 gperftools

原文:https://www.cnblogs.com/stdpain/p/14528294.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!