Returns the linker flags needed to link against htslib.
Details
For dynamic linking, returns -L<libdir> -lhts.
For static linking, also includes the dependent libraries:
-lpthread -lz -lm -lbz2 -llzma -ldeflate.
Examples
htslib_libs()
#> [1] "-L/home/runner/work/_temp/Library/RBCFTools/htslib/lib -lhts"
htslib_libs(static = TRUE)
#> [1] "-L/home/runner/work/_temp/Library/RBCFTools/htslib/lib -lhts -lpthread -lz -lm -lbz2 -llzma -ldeflate -ldl"
# Use in Makevars: PKG_LIBS = $(shell Rscript -e "cat(RBCFTools::htslib_libs())")