Fossil SCM

Static link with musl libc

13 years, 2 months ago by drh

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:


$ 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

After the [6e685da3904a3] check-in, the "chmod +x" step should no longer be necessary, though it is harmless to retain it.

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button