From: Eric Wong Date: 2011-08-11T03:37:52+09:00 Subject: [ruby-core:38905] Re: [Ruby 1.9 - Bug #5147] mkmf should not require static library when ruby is built with --enable-shared Naohisa Goto wrote: > In IRC #ruby-ja, k_tsj reported similar error occurred on Ubuntu 10.4 x86_64. > > /usr/bin/ld: ../../../libruby-static.a(class.o): relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC > ../../../libruby-static.a: could not read symbols: Bad value > > Please revert r32902. Yes, there needs to be a better fix than r32902; it's even more broken than before. I get the same error on Debian as Ubuntu without --enable-shared. --enable-shared continues to work fine.