1 +Edward Berner sends the following description on how to statically link
2 +Fossil using the Musl libc. See http://www.musl-libc.org/ for the Musl Libc
3 +source code:
4 +
5 +<verbatim>
6 +$ tar zxf musl-0.9.9.tar.gz
7 +$ cd musl-0.9.9
8 +$ ./configure --prefix=$HOME/musl --disable-shared
9 +$ make
10 +$ mkdir $HOME/musl
11 +$ make install
12 +# cd to a fossil source directory
13 +$ PATH=$PATH:$HOME/musl/bin
14 +$ cd compat/zlib
15 +$ chmod +x ./configure
16 +$ CC=musl-gcc ./configure --static
17 +$ make
18 +$ cd ../..
19 +$ ./configure --with-openssl=none --with-zlib=compat/zlib --static CC=musl-gcc
20 +$ make
21 +</verbatim>
22 +
23 +After the [6e685da3904a3] check-in, the "chmod +x" step should no longer be
24 +necessary, though it is harmless to retain it.