frameos/ruby19-rpm — pull request #2 by mleinart (2012-02-27 20:24:52+00:00)
Title: mkmf library checks depend on libruby-static

The mkmf.rb library checks depend on libruby-static.a being available. This causes most gem compilations to fail since libruby-static isnt included in the package. This patch is basically the same as what was used in this old fedora bug: https://bugzilla.redhat.com/show_bug.cgi?id=428384

LIBRUBYARG_SHARED is used instead of LIBRUBYARG_STATIC in mkmf.rb and LD_LIBRARY_PATH is set to $(pwd) before compilation so that the newly compiled libruby is found by mkmf while compiling the built-in gems.

The 2nd commit is a correction to use the %{_target} macro to find rbconfig.rb for patching - previous version wouldn't correctly use i686 on CentOS 6.