Mail archive
alpine-aports

[alpine-aports] [PATCH] community/libcoro: fix build on armv7

From: Milan P. Stanić <mps_at_arvanta.net>
Date: Thu, 3 Jan 2019 19:06:36 +0100

use CORO_SJLJ build C flag on all architectures
---
 community/libcoro/APKBUILD | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)
diff --git a/community/libcoro/APKBUILD b/community/libcoro/APKBUILD
index cdd5562aa7..0e0bd4307b 100644
--- a/community/libcoro/APKBUILD
+++ b/community/libcoro/APKBUILD
_at_@ -2,7 +2,7 @@
 # Maintainer: Jakub Jirutka <jakub_at_jirutka.cz>
 pkgname=libcoro
 pkgver=6.513
-pkgrel=0
+pkgrel=1
 pkgdesc="Coroutines (cooperative multitasking) in a portable fashion implemented in C"
 url="http://software.schmorp.de/pkg/libcoro.html"
 arch="all"
_at_@ -42,11 +42,7 @@ prepare() {
 build() {
 	cd "$builddir"
 
-	CFLAGS="-fPIC -pedantic -Wall"
-	case "$CARCH" in
-		x86* | armv7*) CFLAGS="$CFLAGS -DCORO_ASM";;
-		*) CFLAGS="$CFLAGS -DCORO_SJLJ";;
-	esac
+	CFLAGS="-DCORO_SJLJ -fPIC -pedantic -Wall"
 
 	# Build shared lib.
 	$CC $CFLAGS -O3 -c coro.c
-- 
2.18.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Thu Jan 03 2019 - 19:06:36 UTC