haproxy: fix armv[56]* and mips* build

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2018-06-29 04:38:14 +02:00
parent d4b9b2c845
commit c5e06652bd
No known key found for this signature in database
GPG key ID: 6764EC32352D0647

View file

@ -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}
}