Hello,
The recent static linking discussion made me curious, so I looked into
linking Fossil with musl libc (http://www.musl-libc.org/).
It is pretty straight forward and the resulting binary seems to work
okay, although I did not test it extensively. (My curiosity did not
extend to playing with OpenSSL, so that is left as an exercise for the
reader.)
Here is a quick walkthrough.
$ 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
# Done.
--
Edward Berner
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users