haproxy: fix build on libatomic targets
This commit is contained in:
parent
a6ccc69dc4
commit
b090364c85
|
@ -19,14 +19,19 @@ conf_files="/etc/${pkgname}/${pkgname}.cfg"
|
||||||
system_accounts="$pkgname"
|
system_accounts="$pkgname"
|
||||||
|
|
||||||
do_build() {
|
do_build() {
|
||||||
local TARGET
|
local target atomic
|
||||||
case "$XBPS_TARGET_LIBC" in
|
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
|
||||||
musl) TARGET=linux-musl ;;
|
target=linux-musl
|
||||||
*) TARGET=linux-glibc ;;
|
else
|
||||||
esac
|
target=linux-glibc
|
||||||
|
fi
|
||||||
|
if [ "$XBPS_TARGET_NO_ATOMIC8" ]; then
|
||||||
|
atomic="-latomic"
|
||||||
|
fi
|
||||||
make ${makejobs} CC="$CC" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" EXTRA= \
|
make ${makejobs} CC="$CC" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" EXTRA= \
|
||||||
TARGET=$TARGET USE_PCRE=1 USE_PCRE_JIT=1 USE_ZLIB=1 \
|
TARGET=$target 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 \
|
||||||
|
ADDLIB="$atomic"
|
||||||
}
|
}
|
||||||
|
|
||||||
do_check() {
|
do_check() {
|
||||||
|
|
Loading…
Reference in New Issue