From c5e06652bdc353bdd1d025949169b379163909e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Fri, 29 Jun 2018 04:38:14 +0200 Subject: [PATCH] haproxy: fix armv[56]* and mips* build MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/haproxy/template | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/srcpkgs/haproxy/template b/srcpkgs/haproxy/template index 55191c1cb7..e3acda01b0 100644 --- a/srcpkgs/haproxy/template +++ b/srcpkgs/haproxy/template @@ -21,9 +21,15 @@ haproxy_homedir="/var/lib/${pkgname}" case "$XBPS_TARGET_MACHINE" in *-musl) CFLAGS="-D__LINUX_NETFILTER_H";; esac +case "$XBPS_TARGET_MACHINE" in + armv[56]*|mips*) makedepends+=" libatomic-devel";; +esac do_build() { + case "$XBPS_TARGET_MACHINE" in + armv[56]*|mips*) sed -i Makefile -e's;$(LDOPTS);& -latomic;' ;; + esac make ${makejobs} CC="$CC" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" EXTRA= \ ${make_build_args} }