Mail archive
alpine-aports

[alpine-aports] [PATCH] main/redis: fix build on mips{el} (-latomic)

From: alpine-mips-patches <info_at_mobile-stream.com>
Date: Wed, 28 Nov 2018 07:01:20 +0000

Note mipsel* not just mipsel is intentional to cover out-of-tree mipseln8hf.
---
 main/redis/APKBUILD | 2 ++
 1 file changed, 2 insertions(+)
diff --git a/main/redis/APKBUILD b/main/redis/APKBUILD
index 414fb597e9..51e27cc716 100644
--- a/main/redis/APKBUILD
+++ b/main/redis/APKBUILD
_at_@ -38,9 +38,11 @@ prepare() {
 
 build() {
 	cd "$builddir"
+	case "$CARCH" in mips|mipsel*) _libatomic="-latomic";; esac
 	make PREFIX=/usr \
 		INSTALL_BIN="$pkgdir"/usr/bin \
 		MALLOC=libc \
+		FINAL_LIBS="-lm -ldl -pthread $_libatomic" \
 		all
 }
 
-- 
2.19.1
---
Unsubscribe:  alpine-aports+unsubscribe_at_lists.alpinelinux.org
Help:         alpine-aports+help_at_lists.alpinelinux.org
---
Received on Wed Nov 28 2018 - 07:01:20 UTC