From c56aa8245448e3c77c72e52b1dab40949eef96b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Buchm=C3=BCller?= Date: Sat, 3 Aug 2019 20:24:54 +0200 Subject: [PATCH] clamav: use $XBPS_TARGET_LIBC to detect musl MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jürgen Buchmüller --- srcpkgs/clamav/template | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/srcpkgs/clamav/template b/srcpkgs/clamav/template index 3473ad85679..9e5bc801f9f 100644 --- a/srcpkgs/clamav/template +++ b/srcpkgs/clamav/template @@ -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)