Subject: [alpine-aports] [PATCH] fix build on armv7

From: Milan P. Stanić <[email-masked]>
Date: Fri, 7 Dec 2018 16:59:18 +0100

---
 community/wiringpi/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/community/wiringpi/APKBUILD b/community/wiringpi/APKBUILD
index dc8baa6fea..cc41d02269 100644
--- a/community/wiringpi/APKBUILD
+++ b/community/wiringpi/APKBUILD
@@ -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"
 }
-- 
2.18.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---