New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
linking against htslib 1.8 that was built with libdeflate causes samtools to fail configure #688
Comments
FWIW, I believe the Bioconda packages seem to have it working: https://anaconda.org/bioconda/samtools/files https://github.com/bioconda/bioconda-recipes/tree/master/recipes/samtools/build.sh https://github.com/bioconda/bioconda-recipes/blob/master/recipes/htslib/build.sh |
But I did have to do a LOT of fiddling around with it to ensure that it actually linked... |
The problem is that the linker doesn't know where to find your copy of libdeflate. There are a few ways to fix this:
You might also want to do a similar thing when building samtools so you can bake in the location of
If you configure htslib to build against that then the symbols from There may be issues with this approach if you then try to link samtools against the static library |
So building htslib 1.8 into a clean root with libdeflate yields a functioning htslib (which is indeed btw preforming much nicer than zlib although not really improving multithreading).
However attempting to build samtools against that root folder with --with-htslib fails:
I suspect a -ldeflate is missing somewhere... maybe in the m4 file? couldn't figure it out :/
The text was updated successfully, but these errors were encountered: