./configure --with-gnu-ld, make, make install, (do your system's ldconfig. The libs are in /usr/local/rrdtool-1.3.1/lib).