Artifact
cc6c11260587f15af448fcebf47d1d79f12e6cac:
Wiki page
[
Static link with musl libc] by
drh
2013-02-06 12:09:14.
D 2013-02-06T12:09:14.095
L Static\slink\swith\smusl\slibc
U drh
W 711
Edward Berner sends the following description on how to statically link
Fossil using the Musl libc. See http://www.musl-libc.org/ for the Musl Libc
source code:
<verbatim>
$ tar zxf musl-0.9.9.tar.gz
$ cd musl-0.9.9
$ ./configure --prefix=$HOME/musl --disable-shared
$ make
$ mkdir $HOME/musl
$ make install
# cd to a fossil source directory
$ PATH=$PATH:$HOME/musl/bin
$ cd compat/zlib
$ chmod +x ./configure
$ CC=musl-gcc ./configure --static
$ make
$ cd ../..
$ ./configure --with-openssl=none --with-zlib=compat/zlib --static CC=musl-gcc
$ make
</verbatim>
After the [6e685da3904a3] check-in, the "chmod +x" step should no longer be
necessary, though it is harmless to retain it.
Z e223efc17a473bfb4612740c2aebf3fa