dev-ruby/msgpack: fix compilation on x86

Fix bug 582968 by avoiding the default --no-undefined linker
flag. This is only an issue on 32bit arches due to a difference
in inlining rb_num2int.

Package-Manager: portage-2.2.28
This commit is contained in:
Hans de Graaff
2016-05-30 20:11:32 +02:00
parent f75cd3a366
commit d17d755871
+4
View File
@@ -33,6 +33,10 @@ all_ruby_prepare() {
each_ruby_configure() {
${RUBY} -Cext/${PN} extconf.rb || die "Configuration of extension failed."
# rb_num2int is not inlined on 32 bit arches but also not explicitly
# defined, bug 582968
sed -i -e 's:-Wl,--no-undefined::' ext/${PN}/Makefile || die
}
each_ruby_compile() {