diff --git a/srcpkgs/haproxy/template b/srcpkgs/haproxy/template index 85572c2ba21..e6754919103 100644 --- a/srcpkgs/haproxy/template +++ b/srcpkgs/haproxy/template @@ -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() {