From a2e9a91f30095999e69a90caebfa21c0276f52e9 Mon Sep 17 00:00:00 2001 From: Zilong-Li Date: Sat, 21 Dec 2024 21:38:54 +0100 Subject: [PATCH] fix libdeflate missing on mac M-chip --- configure | 8 ++++++-- cran-comments.md | 1 + 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 30f9008..c67a3f4 100755 --- a/configure +++ b/configure @@ -8,8 +8,12 @@ HTSLIB_DIR="src/htslib-1.21" echo "Configuring HTSlib in $HTSLIB_DIR" cd $HTSLIB_DIR ## copy file instead of symbolic linking -cp htscodecs_bundled.mk htscodecs.mk -./configure CFLAGS="-O2 -fPIC" +cp htscodecs_bundled.mk htscodecs.mk +if [ "$(uname)" = "Darwin" ]; then + ./configure --without-libdeflate CFLAGS="-O2 -fPIC" +else + ./configure CFLAGS="-O2 -fPIC" +fi make libhts.a diff --git a/cran-comments.md b/cran-comments.md index 0af7a37..959ff38 100644 --- a/cran-comments.md +++ b/cran-comments.md @@ -1,4 +1,5 @@ v0.7.0 +* address issues on https://cran.r-project.org/web/checks/check_results_vcfppR.html * fix parsing BCF when subsetting sample ids and the genomic region at the same time * fix `vcfcomp` with `stats="nrc"` when the input vectors have different length * use the latest version of htslib v1.21