Procedure for compiling HTSLIB under emscripten
- Get emscripten, e.g. brew install emscripten
- Get zlib source distribution from zlib.org
- zlib - “emconfigure ./configure” in zlib
- zlib - comment out AR and ARFLAGS in Makefile (default libtool breaks things, at least on Mac)
- zlib - Run “emmake make”
- Get htslib source distribution from htslib.org
- htslib - Don’t run emconfigure ./configure as it gets confused by lack of zlib (not sure how to point to it?)
- htslib - Delete the AR = ar line from Makefile