I for one found it simple to build a static library (libruby.a) into a
shared library (ns_ruby.so) in my ns_ruby module. You can grab a
tarball from it's sourceforge page and see what linking options I used
to do that. Sadly I can't get to my local CVS and devel notes since
during my last reloc UPS trashed my PC. After I rebuild I'll be more
helpful.
If you really need to use static linking, just look at how the
makefile builds nsd8x. The final make links a large number of static
libraries anyway.