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

From: alpine-mips-patches <[email-masked]>
Date: Wed, 28 Nov 2018 07:01:20 +0000

Note mipsel* is intentional to cover out-of-tree mipseln8hf.
---
 main/haproxy/APKBUILD | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/main/haproxy/APKBUILD b/main/haproxy/APKBUILD
index 84644fc13b..e83bb1259c 100644
--- a/main/haproxy/APKBUILD
+++ b/main/haproxy/APKBUILD
@@ -22,7 +22,9 @@ builddir="$srcdir/$pkgname-$pkgver"
 
 build() {
 	cd "$builddir"
+	case "$CARCH" in mips|mipsel*) _carchflags="ADDLIB=-latomic";; esac
 	make \
+	     $_carchflags \
 	     TARGET=linux2628 \
 	     USE_PCRE=1 \
 	     USE_OPENSSL=1 \
-- 
2.19.1

---
Unsubscribe:  [email-masked]
Help:         [email-masked]
---