~alpine/aports

testing/marisa-trie: fix building on non-x86 platforms v1 PROPOSED

Export patchset (mbox)
How do I use this?

Copy & paste the following snippet into your terminal to import this patchset into git:

curl -s https://lists.alpinelinux.org/~alpine/aports/%3C20190907202828.10434-1-bribbers%40disroot.org%3E/mbox | git am -3
Learn more about email & git

[PATCH] testing/marisa-trie: fix building on non-x86 platforms Export this patch

Bart Ribbers
---
 testing/marisa-trie/APKBUILD | 18 ++++++++++++++----
 1 file changed, 14 insertions(+), 4 deletions(-)

diff --git a/testing/marisa-trie/APKBUILD b/testing/marisa-trie/APKBUILD
index 3319201868..f966471e63 100644
--- a/testing/marisa-trie/APKBUILD
+++ b/testing/marisa-trie/APKBUILD
@@ -18,10 +18,20 @@ prepare() {
 }
 
 build() {
-	./configure \
-		--prefix=/usr \
-		--disable-static \
-		--enable-sse2
+	case "$CARCH" in
+		x86|x86_64)
+			./configure \
+				--prefix=/usr \
+				--disable-static \
+				--enable-sse2
+			;;
+		*)
+			./configure \
+				--prefix=/usr \
+				--disable-static
+			;;
+	esac
+
 	make
 }
 
-- 
2.23.0
View this thread in the archives