Shared library paths on linux

I’d like to build the shared library version of ruby on linux, but I don’t
want to have to keep resetting LD_LIBRARY_PATH.

I’ve put the following in my "ruby/configure.in " on line 657:

LDFLAGS=‘-Wl,-rpath=$(libdir)’
end<<<

Is this the right fix?

Rob