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

Milan P. Stanić
Details
Message ID
<20181207155918.10677-1-mps@arvanta.net>
Sender timestamp
1544198358
DKIM signature
missing
Download raw message
Patch: +2 -2
---
 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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---