export LDFLAGS="-Wl,-rpath=/sw/app/version/lib" ./configure --prefix=/sw/app/version make sudo make install unset LDFLAGS