haproxy: fix armv[56]* and mips* build
Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
parent
d4b9b2c845
commit
c5e06652bd
1 changed files with 6 additions and 0 deletions
|
@ -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}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue