Cleanup and sort flags in standard_configure_options(), no functional changes.
authorDavide Pesavento <pesa@gentoo.org>
Wed, 21 Dec 2011 23:38:45 +0000 (23:38 +0000)
committerDavide Pesavento <pesa@gentoo.org>
Wed, 21 Dec 2011 23:38:45 +0000 (23:38 +0000)
eclass/qt4-build.eclass

index 1b0c623df337ebc4e0b46a6730833d2bcd81562a..fd654d1b2fcb2d5d7272a14f130aa6b9b7c08ae3 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2011 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.106 2011/12/21 22:47:35 pesa Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/qt4-build.eclass,v 1.107 2011/12/21 23:38:45 pesa Exp $
 
 # @ECLASS: qt4-build.eclass
 # @MAINTAINER:
@@ -463,18 +463,16 @@ setqtenv() {
 # Sets up some standard configure options, like libdir (if necessary), whether
 # debug info is wanted or not.
 standard_configure_options() {
-       local myconf=
+       local myconf="-prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR}
+               -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR} -plugindir ${QTPLUGINDIR}
+               -importdir ${QTIMPORTDIR} -datadir ${QTDATADIR} -translationdir ${QTTRANSDIR}
+               -sysconfdir ${QTSYSCONFDIR} -examplesdir ${QTEXAMPLESDIR} -demosdir ${QTDEMOSDIR}
+               -opensource -confirm-license -shared -fast -largefile -stl -verbose
+               -platform $(qt_mkspecs_dir) -nomake examples -nomake demos"
 
        [[ $(get_libdir) != lib ]] && myconf+=" -L${EPREFIX}/usr/$(get_libdir)"
 
-       # Disable visibility explicitly if gcc version isn't 4
-       if [[ $(gcc-major-version) -lt 4 ]]; then
-               myconf+=" -no-reduce-exports"
-       fi
-
-       # precompiled headers doesn't work on hardened, where the flag is masked.
-       myconf+=" $(qt_use pch)"
-
+       # debug/release
        if use debug; then
                myconf+=" -debug"
        else
@@ -482,6 +480,24 @@ standard_configure_options() {
        fi
        myconf+=" -no-separate-debug-info"
 
+       # exceptions USE flag
+       local exceptions="-exceptions"
+       in_iuse exceptions && exceptions="$(qt_use exceptions)"
+       myconf+=" ${exceptions}"
+
+       # disable RPATH on Qt >= 4.8 (bug 380415)
+       version_is_at_least 4.8 && myconf+=" -no-rpath"
+
+       # precompiled headers don't work on hardened, where the flag is masked
+       myconf+=" $(qt_use pch)"
+
+       # -reduce-relocations
+       # This flag seems to introduce major breakage to applications,
+       # mostly to be seen as a core dump with the message "QPixmap: Must
+       # construct a QApplication before a QPaintDevice" on Solaris.
+       #   -- Daniel Vergien
+       [[ ${CHOST} != *-solaris* ]] && myconf+=" -reduce-relocations"
+
        use aqua && myconf+=" -no-framework"
 
        # ARCH is set on Gentoo. Qt now falls back to generic on an unsupported
@@ -498,29 +514,6 @@ standard_configure_options() {
                *) die "$(tc-arch) is unsupported by this eclass. Please file a bug." ;;
        esac
 
-       # exceptions USE flag
-       local exceptions="-exceptions"
-       in_iuse exceptions && exceptions="$(qt_use exceptions)"
-
-       # bug 380415
-       version_is_at_least 4.8 && myconf+=" -no-rpath"
-
-       # note about -reduce-relocations:
-       # That flag seems to introduce major breakage to applications,
-       # mostly to be seen as a core dump with the message "QPixmap: Must
-       # construct a QApplication before a QPaintDevice" on Solaris
-       #   -- Daniel Vergien
-       [[ ${CHOST} != *-solaris* ]] && myconf+=" -reduce-relocations"
-
-       myconf+=" -platform $(qt_mkspecs_dir) -stl -verbose -largefile -confirm-license
-               -prefix ${QTPREFIXDIR} -bindir ${QTBINDIR} -libdir ${QTLIBDIR}
-               -datadir ${QTDATADIR} -docdir ${QTDOCDIR} -headerdir ${QTHEADERDIR}
-               -plugindir ${QTPLUGINDIR} -sysconfdir ${QTSYSCONFDIR}
-               -translationdir ${QTTRANSDIR} -examplesdir ${QTEXAMPLESDIR}
-               -demosdir ${QTDEMOSDIR} -importdir ${QTIMPORTDIR} -silent -fast -opensource
-               ${exceptions}
-               -nomake examples -nomake demos"
-
        echo "${myconf}"
 }