An example of how to add a custom library path to the runtime linker of a native ruby gem
sudo env PATH="/opt/curl/bin:$PATH" gem install toland-patron -v "0.4.1" --source http://gems.github.com -- --with-ldflags="-Wl,-R/opt/curl/lib"