On Sat, Dec 18, 2010 at 03:15:59PM +0100, јеромонах Виталије wrote: > to: Lluís Batlle i Rossell > Thanks for your advice > I have `strip -s fossil` and now it is about 856k. > > I suppose that my home Ubuntu is quite newer version than the server is. > > How can I staticaly link fossil with glibc to avoid using (incompatible) > system shared library?
glibc does not allow total static linking, as its name resolution services, libnss and friends, can only be dynamically linked. But keeping only libnss dynamically linked would give you more chances to get a working binary in your old system. Notice how often most of the open source world relies on "as you have the new source for free, please update to keep all working". :) As fossil does not only use libc, but also other libraries (and they use libc too), you would have to link statically all of them (openssl, ...). This means, first, having them available in your filesystem. Changing the gcc flags of the linking stage adding a "-static" there will try to create a static ELF instead of a dynamic ELF, and therefore it will take only static libraries specified through "-l". Look at the fossil makefiles (build instructions written for GNU Make to interpret, in your case) for that. Regards, Lluís. _______________________________________________ fossil-users mailing list [email protected] http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

