diff options
Diffstat (limited to 'lang/ruby16-shim-ruby18/files/patch-ext+dl+extconf.rb')
-rw-r--r-- | lang/ruby16-shim-ruby18/files/patch-ext+dl+extconf.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lang/ruby16-shim-ruby18/files/patch-ext+dl+extconf.rb b/lang/ruby16-shim-ruby18/files/patch-ext+dl+extconf.rb new file mode 100644 index 000000000000..359d1ee34af3 --- /dev/null +++ b/lang/ruby16-shim-ruby18/files/patch-ext+dl+extconf.rb @@ -0,0 +1,19 @@ +--- ext/dl/extconf.rb.orig Mon Oct 21 23:52:24 2002 ++++ ext/dl/extconf.rb Sun Jul 20 00:55:25 2003 +@@ -183,6 +183,16 @@ + ] + + create_makefile('dl') ++ ++if (Config::CONFIG['CC'] =~ /gcc/) && (Config::CONFIG['arch'] =~ /i.86/) ++ open('Makefile', 'r+') {|f| ++ s = f.read ++ f.rewind ++ f.print s.gsub(/^(CFLAGS\s*=.*\s)-m(cpu|arch)=\S+/, "\\1") ++ f.truncate f.tell ++ } ++end ++ + rescue SystemExit + # do nothing + end |