static compile of rsync

Lasse Kliemann lasse-rsync-2008 at mail.plastictree.net
Tue Mar 18 19:04:20 GMT 2008


* Message by -Paul Slootman- from Tue 2008-03-18:
 
> Be aware that at least when using glibc, a number of things are always
> dynamic, e.g the nsswitch stuff (for host lookups etc.)
> If the targets are linux systems, then the safest way is to build
> appropriate packages...

rsync can be linked statically against the dietlibc on Linux.

The following procedure works:

CC="diet gcc -nostdinc"
export CC
./configure --disable-locale
echo '#define HAVE_STRUCT_ADDRINFO 1' >> config.h
make

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
Url : http://lists.samba.org/archive/rsync/attachments/20080318/26f0f3dd/attachment.bin


More information about the rsync mailing list