Static linking is preferred for some cases although it has its own various problems. Static building/linking is not always possible for some languages on some platform. For OCaml, the answer to this question is yes. In this post, we will introduce 2 methods to statically linking OCaml: static linking with runtime glibc required and static
Read more
Tag: musl-libc
How to install musl libc on Fedora 21 Linux?
Posted onIt seems Fedora 21 does not ship with musl-libc. How to install musl libc on Fedora 21 Linux? First, download musl libc source package from its download page: http://www.musl-libc.org/download.html . Here we use 1.1.5 as the example. After unpacking the source package, configure and build it by $ ./configure $ make Then, install it by
Read more
How to install musl libc on Linux Mint 17?
Posted onHow to install musl libc on Linux Mint 17/Ubuntu 14.04? You can install musl libc on Linux Mint 17 by sudo aptitude install musl musl-dev musl-tools One note: If you want to install a newer version of musl libc than the one from Ubuntu repo, you can use this ppa: https://launchpad.net/~bortis/ archive/ubuntu/musl by sudo add-apt-repository
Read more
Statically Linking C and C++ Programs on Linux with gcc
Posted onBefore statically linking you C and C++ programs, you should be aware of the drawbacks of the static linking especially with glibc. There are some good discussions already: with glibc you’re linking static programs which are not really static and some others here and here. That said, you can choose to statically link C and
Read more