clamav: use $XBPS_TARGET_LIBC to detect musl

Signed-off-by: Jürgen Buchmüller <pullmoll@t-online.de>
This commit is contained in:
Jürgen Buchmüller 2019-08-03 20:24:54 +02:00
parent cae6b0106b
commit c56aa82454
No known key found for this signature in database
GPG Key ID: DE55AD8DBEBB4EE8
1 changed files with 4 additions and 5 deletions

View File

@ -27,11 +27,10 @@ CPPFLAGS="-Wno-unused-local-typedefs"
if [ "$CROSS_BUILD" ]; then
configure_args+=" --disable-mempool"
fi
case "$XBPS_TARGET_MACHINE" in
*-musl) makedepends+=" musl-fts-devel"
LDFLAGS="-lfts"
;;
esac
if [ "$XBPS_TARGET_LIBC" = "musl" ]; then
makedepends+=" musl-fts-devel"
LDFLAGS="-lfts"
fi
do_configure() {
# Disable detection of sys/cdefs.h (it's obsolete)