checking whether to use .ctors/.dtors header and trailer... configure: error: missing __attribute__ ((constructor)) support??

 

001、问题:checking whether to use .ctors/.dtors header and trailer... configure: error: missing __attribute__ ((constructor)) support??

[root@PC1 build]# ../configure  --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin --disable-sanity-checks --disable-werror

 

002、解决方法(在末尾增加了 libc_cv_ctors_header=yes )

[root@PC1 build]# ../configure  --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin --disable-sanity-checks --disable-werror libc_cv_ctors_header=yes

 。

参考:https://www.thinbug.com/q/53781080

 

posted @   小鲨鱼2018  阅读(184)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律
历史上的今天:
2022-07-17 linux 中shell统计fasta文件中每条染色体上的碱基数目
2022-07-17 linux shell统计 fasta文件中每条染色体上的碱基数
2022-07-17 linux 中删除匹配特定字符的行及其后的若干行
2022-07-17 linux 中 sed命令匹配特定字符之间的数据
2022-07-17 linux 中 sed匹配特定字符并输出其后的若干行
2021-07-17 linux系统中如何删除^M
2021-07-17 linux系统中实现文件指定列的互换
点击右上角即可分享
微信分享提示