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 @ 2023-07-17 17:07  小鲨鱼2018  阅读(121)  评论(0编辑  收藏  举报