Wednesday, September 05, 2018

Building a statically linked rsync

Install dependencies for building:
yum -y install glibc-static popt-devel popt-static

Download, then build:
tar xf rsync-3.0.9.tar.gz
cd rsync-3.0.9
./configure
make CFLAGS="-static" EXEEXT="-3.0.9-static"
strip rsync-3.0.9-static

That's what I needed to do on RHEL7. YMMV.

No comments:

Post a Comment