extra/cln: armv6h bits

This commit is contained in:
Kevin Mihelich 2012-07-29 19:26:36 +00:00
parent ccb4d6f536
commit f9788dc4bd

View file

@ -1,13 +1,11 @@
# $Id: PKGBUILD 127750 2011-06-18 05:06:20Z eric $
# Maintainer: Eric Bélanger <eric@archlinux.org>
# ALARM: Kevin Mihelich <kevin@plugapps.com>
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
# - Redefined our CFLAGS and CXXFLAGS to remove -O2, and define -DNO_ASM.
# Optimization kills the builds, NO_ASM prevents it using asm that doesn't work for us.
# - Removed building and installing pdf docs, it always fails.
plugrel=1
pkgname=cln
pkgver=1.3.2
pkgrel=1
@ -26,8 +24,11 @@ sha1sums=('c30dca80e75f45e2107f233075e6d0339ea884b0')
build() {
cd "${srcdir}/${pkgname}-${pkgver}"
if [ "$CARCH" = "armv7h" ]; then
export CFLAGS="-march=armv7-a -pipe -DNO_ASM"
export CXXFLAGS="-march=armv7-a -pipe -DNO_ASM"
export CFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -pipe -DNO_ASM"
export CXXFLAGS="-march=armv7-a -mfloat-abi=hard -mfpu=vfpv3-d16 -pipe -DNO_ASM"
elif [ "$CARCH" = "armv6h" ]; then
export CFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -pipe -DNO_ASM"
export CXXFLAGS="-march=armv6 -mfloat-abi=hard -mfpu=vfp -pipe -DNO_ASM"
else
export CFLAGS="-march=armv5te -pipe -DNO_ASM"
export CXXFLAGS="-march=armv5te -pipe -DNO_ASM"