|
|
其实出错原因在/usr/portage/eclass/toolchain.eclass这个文件,详细作用没有探究.不过其中:
判断条件中"if is_crosscompile ; then"内,全文件1315行:
- if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] ; then
- confgcc="${confgcc} --disable-bootstrap --disable-libgomp"
- if
复制代码
查阅Gentoo BUG LIST:#234841虽然是修正4.3.1-r1的本机GCC编译器问题(好像并没有添加到,不过同样受用.拿来主义:-)修改如下:
- if [[ ${GCCMAJOR}.${GCCMINOR} > 4.1 ]] && [[ ${GCCMAJOR}.${GCCMINOR} < 4.2 ]] ; then
- confgcc="${confgcc} --disable-bootstrap --disable-libgomp"
- elif tc_version_is_at_least "4.2" ; then
- confgcc="${confgcc} --disable-bootstrap $(use_enable openmp libgomp)"
- fi
复制代码
提醒 penmp在mingw中需要pthread支持 |
|