--- a/qt4-build-multilib.eclass 2016-07-08 00:35:23.000000000 +0300 +++ b/qt4-build-multilib.eclass 2016-08-02 15:45:04.000000000 +0300 @@ -188,6 +188,15 @@ qt4-build-multilib_src_prepare() { fi fi + if use_if_iuse exceptions && use_if_iuse abi_x86_32 && use_if_iuse abi_x86_64 && ! use_if_iuse debug; then + # Bug 546746 + # default x86_32 abi can not use -msse* without aligning on Intel + # with some options like -ftree-vectorize, etc. + # This solution violate SysV ABI standard and not popular in Linux world. + # Apply only on amd64 + multilib. + append-flags -mstackrealign + fi + # Bug 261632 if use ppc64; then append-flags -mminimal-toc