[x11-libs/qt-core] More respect for *FLAGS.
authorMichael Palimaka <kensington@gentoo.org>
Wed, 25 Jul 2012 14:05:08 +0000 (00:05 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 25 Jul 2012 14:05:08 +0000 (00:05 +1000)
(Portage version: 2.1.11.9/git/Linux x86_64, unsigned Manifest commit)

x11-libs/qt-core/qt-core-4.8.9999.ebuild

index 18eb5d5..77229ec 100644 (file)
@@ -87,6 +87,13 @@ src_prepare() {
                "${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix CXXFLAGS failed"
        sed -i -e "s:LFLAGS.*=:LFLAGS=${LDFLAGS} :" \
                "${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix LDFLAGS failed"
+
+       # bug #427782
+       sed -i -e "/^CPPFLAGS/s/-g//" \
+               "${S}/qmake/Makefile.unix" || die "sed qmake/Makefile.unix CPPFLAGS failed"
+       sed -i -e "s/setBootstrapVariable QMAKE_CFLAGS_RELEASE/QMakeVar set QMAKE_CFLAGS_RELEASE/" \
+               -e "s/setBootstrapVariable QMAKE_CXXFLAGS_RELEASE/QMakeVar set QMAKE_CXXFLAGS_RELEASE/" \
+               "${S}/configure" || die "sed configure setBootstrapVariable failed"
 }
 
 src_configure() {