haproxy: fix musl build

This commit is contained in:
Enno Boland 2020-06-08 10:49:55 +02:00
parent fde8c166a7
commit f2180410e7
No known key found for this signature in database
GPG key ID: 5A7B9F1D0DFEB55D

View file

@ -1,7 +1,7 @@
# Template file for 'haproxy'
pkgname=haproxy
version=2.1.5
revision=1
revision=2
build_style=gnu-makefile
make_build_args="TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1
USE_OPENSSL=1 USE_LIBCRYPT=1 USE_GETADDRINFO=1 USE_LUA=1"
@ -19,12 +19,16 @@ make_dirs="$haproxy_homedir 0750 ${pkgname} ${pkgname}"
conf_files="/etc/${pkgname}/${pkgname}.cfg"
system_accounts="$pkgname"
case "$XBPS_TARGET_MACHINE" in
*-musl) CFLAGS="-D__LINUX_NETFILTER_H";;
case "$XBPS_TARGET_LIBC" in
musl)
makedepends+=" libexecinfo-devel"
CFLAGS="-D__LINUX_NETFILTER_H"
ADDLIB+=" -lexecinfo"
;;
esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
ADDLIB="-latomic"
ADDLIB+=" -latomic"
fi
do_build() {