haproxy: fix musl build
This commit is contained in:
parent
fde8c166a7
commit
f2180410e7
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue