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
标签:__,...,use,--,header,disable,usr,ctors From: https://www.cnblogs.com/liujiaxin2018/p/17560655.html