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
1 changed files with 8 additions and 4 deletions

View File

@ -1,7 +1,7 @@
# Template file for 'haproxy' # Template file for 'haproxy'
pkgname=haproxy pkgname=haproxy
version=2.1.5 version=2.1.5
revision=1 revision=2
build_style=gnu-makefile build_style=gnu-makefile
make_build_args="TARGET=linux-glibc USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1 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" 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" conf_files="/etc/${pkgname}/${pkgname}.cfg"
system_accounts="$pkgname" system_accounts="$pkgname"
case "$XBPS_TARGET_MACHINE" in case "$XBPS_TARGET_LIBC" in
*-musl) CFLAGS="-D__LINUX_NETFILTER_H";; musl)
makedepends+=" libexecinfo-devel"
CFLAGS="-D__LINUX_NETFILTER_H"
ADDLIB+=" -lexecinfo"
;;
esac esac
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
ADDLIB="-latomic" ADDLIB+=" -latomic"
fi fi
do_build() { do_build() {