I found that sci-biology/samtools-0.1.19 doins *.h, but without libbam.a, which may be used for linking other software. So I suggest to install the library file when emerging. Reproducible: Always # emerge -pqvO samtools [ebuild R ] sci-biology/samtools-0.1.19 USE="examples" PYTHON_TARGETS="python2_7 -python2_6"
What software forces this static linking? samtools should install libbam.so already.
Oh, I see. You are right, libbam.so is enough. I was trying to build consed (the latest version is 26), in whose makefile the libbam.a is static linked. Yes, I can override that by using dynamic linking. Thanks!