Specify CFLAGS and CXXFLAGS for qmake

This commit is contained in:
nfnty 2017-07-17 16:25:39 +02:00
parent ba254a4423
commit c7006a10f3
No known key found for this signature in database
GPG Key ID: 32DD96A5D0370907
2 changed files with 6 additions and 3 deletions

View File

@ -1,7 +1,7 @@
pkgbase = qt5-styleplugins
pkgdesc = Additional style plugins for Qt5
pkgver = 5.0.0
pkgrel = 9
pkgrel = 10
url = https://code.qt.io/cgit/qt/qtstyleplugins
install = install.sh
arch = i686

View File

@ -4,7 +4,7 @@ _srcname='qtstyleplugins'
pkgdesc='Additional style plugins for Qt5'
pkgver='5.0.0'
_commit='84b443109729664c7a0bd124b42c493f28069efc'
pkgrel='9'
pkgrel='10'
arch=('i686' 'x86_64')
url="https://code.qt.io/cgit/qt/${_srcname}"
license=('LGPL')
@ -22,7 +22,10 @@ install='install.sh'
build() {
cd "${srcdir}/${_srcname}"
qmake PREFIX='/usr' LIBDIR='/usr/lib'
qmake PREFIX='/usr' \
LIBDIR='/usr/lib' \
QMAKE_CFLAGS_RELEASE="${CFLAGS}" \
QMAKE_CXXFLAGS_RELEASE="${CXXFLAGS}"
make
}