[opam-devel] Using binaries

Török Edwin edwin+ml-ocaml at etorok.net
Sat Jan 23 21:33:05 GMT 2016


On 01/22/2016 07:11 PM, Gabriel Scherer wrote:
> (If I understand https://github.com/ocaml/opam-repository/blob/master/compilers/4.02.3/4.02.3%2Bmusl%2Bstatic/4.02.3%2Bmusl%2Bstatic.comp correctly, the upstream compiler needs no patching to work with musl.)

I had more success by using 4.02.3+musl and adding '-cclib -static' just to the final application's linker options.
4.02.3+musl+static fails in variouos ways when libraries try to build a .cmxs.

Also opam packages with C dependencies require those to be built with musl (zlib, libev, hopefully not openssl, etc.) .. at which point you may
want to avoid becoming a mini-distro based on musl and provide just a few of the popular C libs that allows the largest part of the opam repository to be built with musl.

-- 
Edwin Török | Co-founder and Lead Developer

Skylable open-source object storage: reliable, fast, secure
http://www.skylable.com



More information about the opam-devel mailing list