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

From: alpine-mips-patches <[email-masked]>
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
@@ -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:  [email-masked]
Help:         [email-masked]
---