Index: hwoarang/development/gentoo-x86/eclass/qt4-build.eclass =================================================================== --- hwoarang.orig/development/gentoo-x86/eclass/qt4-build.eclass +++ hwoarang/development/gentoo-x86/eclass/qt4-build.eclass @@ -14,6 +14,12 @@ inherit base eutils multilib toolchain-funcs flag-o-matic versionator IUSE="${IUSE} debug pch" + +# add 'exceptions' use flag, wrt bug 240185. This change must not +# affect 4.4.2 and 4.5.1 stable packages +[[ ${CATEGORY}/${PN} != x11-libs/qt-xmlpatterns ]] && [[ ${PV} != "4.4.2" ]] && \ +[[ ${PV} != "4.5.1" ]] && IUSE="${IUSE} exceptions" + RDEPEND=" !x11-libs/qt-assistant-${PV}-r9999 @@ -286,13 +292,21 @@ standard_configure_options() { *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;; esac + local exceptions="" + if has exceptions "${IUSE}"; then + if use exceptions; then + exceptions="-exceptions" + else + exceptions="-no-exceptions" + fi + fi + myconf="${myconf} -platform $(qt_mkspecs_dir) -stl -verbose -largefile -confirm-license -no-rpath -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR} -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR} -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR} - -demosdir ${QTDEMOSDIR} -silent -fast - $([[ ${PN} == qt-xmlpatterns ]] || echo -no-exceptions) + -demosdir ${QTDEMOSDIR} -silent -fast ${exceptions} -reduce-relocations -nomake examples -nomake demos" # Make eclass 4.5.{1,2} ready