aboutsummaryrefslogtreecommitdiffstats
path: root/community
diff options
context:
space:
mode:
authorMilan P. Stanić <mps@arvanta.net>2018-12-07 16:59:18 +0100
committerNatanael Copa <ncopa@alpinelinux.org>2018-12-07 18:25:19 +0000
commit834d47b683c8c86ecbb135223489196e4ea65347 (patch)
tree0c71536b13858f64cea21ea2b7457c8e815c78f4 /community
parent5ef12662f2077b9c3f088b22ccd81617760dc7e5 (diff)
downloadaports-834d47b683c8c86ecbb135223489196e4ea65347.tar.bz2
aports-834d47b683c8c86ecbb135223489196e4ea65347.tar.xz
community/wiringpi: fix build on armv7
Diffstat (limited to 'community')
-rw-r--r--community/wiringpi/APKBUILD6
1 files changed, 3 insertions, 3 deletions
diff --git a/community/wiringpi/APKBUILD b/community/wiringpi/APKBUILD
index dc8baa6fea..327b1609c4 100644
--- a/community/wiringpi/APKBUILD
+++ b/community/wiringpi/APKBUILD
@@ -2,7 +2,7 @@
pkgname=wiringpi
pkgver=2.46
_commitid=8d188fa
-pkgrel=1
+pkgrel=2
pkgdesc="command line interface for Raspberry Pi gpio"
url="http://wiringpi.com/the-gpio-utility/"
arch="armhf armv7"
@@ -19,9 +19,9 @@ builddir="$srcdir"/wiringPi-$_commitid
build() {
cd "$builddir"
- make -C wiringPi CFLAGS="$CFLAGS -I." LDFLAGS="$LDFLAGS" WIRINGPI_SONAME_SUFFIX=".$pkgver"
+ make -C wiringPi CFLAGS="$CFLAGS -fpic -I." LDFLAGS="$LDFLAGS" WIRINGPI_SONAME_SUFFIX=".$pkgver"
ln -sf libwiringPi.so.$pkgver wiringPi/libwiringPi.so
- make -C devLib CFLAGS="$CFLAGS -I../wiringPi" LDFLAGS="$LDFLAGS" WIRINGPI_SONAME_SUFFIX=".$pkgver"
+ make -C devLib CFLAGS="$CFLAGS -fpic -I../wiringPi" LDFLAGS="$LDFLAGS" WIRINGPI_SONAME_SUFFIX=".$pkgver"
ln -sf libwiringPiDev.so.$pkgver devLib/libwiringPiDev.so
make -C gpio CFLAGS="$CFLAGS -I../wiringPi -I../devLib" LDFLAGS="$LDFLAGS -L../wiringPi -L../devLib"
}