[eclass] More respect for *FLAGS.
authorMichael Palimaka <kensington@gentoo.org>
Wed, 25 Jul 2012 14:45:09 +0000 (00:45 +1000)
committerMichael Palimaka <kensington@gentoo.org>
Wed, 25 Jul 2012 14:45:09 +0000 (00:45 +1000)
eclass/qt4-build.eclass

index c6365b1..2d41d13 100644 (file)
@@ -266,7 +266,13 @@ qt4-build_src_prepare() {
                CXX='$(tc-getCXX)'\n\
                CFLAGS='${CFLAGS}'\n\
                CXXFLAGS='${CXXFLAGS}'\n\
-               LDFLAGS='${LDFLAGS}'\n" \
+               LDFLAGS='${LDFLAGS}'\n\
+               QMakeVar set QMAKE_CFLAGS_RELEASE\n\
+               QMakeVar set QMAKE_CFLAGS_DEBUG\n\
+               QMakeVar set QMAKE_CXXFLAGS_RELEASE\n\
+               QMakeVar set QMAKE_CXXFLAGS_DEBUG\n\
+               QMakeVar set QMAKE_LFLAGS_RELEASE\n\
+               QMakeVar set QMAKE_LFLAGS_DEBUG\n"\
                -i configure \
                || die "sed SYSTEM_VARIABLES failed"