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

alpine-mips-patches
Details
Message ID
<20181128072016.088D14B9DF@mx7.valuehost.ru>
Sender timestamp
1543388480
DKIM signature
missing
Download raw message
Patch: +2 -0
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:  alpine-aports+unsubscribe@lists.alpinelinux.org
Help:         alpine-aports+help@lists.alpinelinux.org
---