diff options
Diffstat (limited to 'extra/abiword/PKGBUILD')
-rw-r--r-- | extra/abiword/PKGBUILD | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/extra/abiword/PKGBUILD b/extra/abiword/PKGBUILD index b2e9ef2ca..4b81dc298 100644 --- a/extra/abiword/PKGBUILD +++ b/extra/abiword/PKGBUILD @@ -16,6 +16,33 @@ source=("http://www.abisource.com/downloads/${pkgbase}/${pkgver}/source/${pkgbas sha1sums=('998f69d038000b3fc027d4259548f02d67c8d0df' 'e5374f439e3d9b63a4bbd2cd39146c67cf1e85ea') +if [ "${CARCH}" = 'mips64el' ]; then + + ARCHFLAGS="" + for opt in ${CFLAGS}; do + case ${opt} in + -O?) ARCHFLAGS+="-O1 " ;; + *) ARCHFLAGS+="${opt} " ;; + esac + done + CFLAGS=${ARCHFLAGS} + + ARCHFLAGS="" + for opt in ${CXXFLAGS}; do + case ${opt} in + -O?) ARCHFLAGS+="-O1 " ;; + *) ARCHFLAGS+="${opt} " ;; + esac + done + CXXFLAGS=${ARCHFLAGS} + + unset ARCHFLAGS + + echo CFLAGS : ${CFLAGS} + echo CXXFLAGS: ${CXXFLAGS} +fi + + build() { cd "${srcdir}/${pkgbase}-${pkgver}" |