summaryrefslogtreecommitdiff
path: root/extra
diff options
context:
space:
mode:
authorMichał Masłowski <mtjm@mtjm.eu>2011-12-24 16:23:29 +0100
committerMichał Masłowski <mtjm@mtjm.eu>2011-12-24 16:23:29 +0100
commit98fdd73a8e69ab7f82c5452aa5dd4dd51b8d800c (patch)
tree97509cb0b1fa65ab55c7dbbcd6e360ccd4fa288f /extra
parent1938875bc4b7e7768d44d75a7ad6b0c31975ca47 (diff)
qt builds without -no-pch but needs -fpermissive.
Diffstat (limited to 'extra')
-rw-r--r--extra/qt/PKGBUILD8
1 files changed, 2 insertions, 6 deletions
diff --git a/extra/qt/PKGBUILD b/extra/qt/PKGBUILD
index 165f7adaf..b2fd9eac9 100644
--- a/extra/qt/PKGBUILD
+++ b/extra/qt/PKGBUILD
@@ -27,15 +27,11 @@ md5sums=('e8a5fdbeba2927c948d9f477a6abe904'
build() {
cd "${srcdir}"/${_pkgfqn}
-# Disable precompiled headers for mips64el
- [ "$CARCH" = "mips64el" ] && {
- export CXXFLAGS="$CXXFLAGS -fpermissive"
- extra="-no-pch"
- }
-
export QT4DIR="${srcdir}"/${_pkgfqn}
export LD_LIBRARY_PATH=${QT4DIR}/lib:${LD_LIBRARY_PATH}
+ [ "${CARCH}" = "mips64el" ] && export CXXFLAGS="${CXXFLAGS} -fpermissive"
+
sed -i "s|-O2|${CXXFLAGS}|" mkspecs/common/g++-base.conf
sed -i "/^QMAKE_LFLAGS_RPATH/s| -Wl,-rpath,||g" mkspecs/common/gcc-base-unix.conf
sed -i "/^QMAKE_LFLAGS\s/s|+=|+= ${LDFLAGS}|g" mkspecs/common/gcc-base.conf