diff options
Diffstat (limited to 'x11-toolkits/ruby-wx/files/patch-extconf.rb')
-rw-r--r-- | x11-toolkits/ruby-wx/files/patch-extconf.rb | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/x11-toolkits/ruby-wx/files/patch-extconf.rb b/x11-toolkits/ruby-wx/files/patch-extconf.rb new file mode 100644 index 000000000000..b018405af9f1 --- /dev/null +++ b/x11-toolkits/ruby-wx/files/patch-extconf.rb @@ -0,0 +1,20 @@ +--- extconf.rb.orig Wed Nov 17 15:56:22 2004 ++++ extconf.rb Fri Feb 11 00:42:43 2005 +@@ -32,13 +32,16 @@ + end + + +-if /linux/ =~ RUBY_PLATFORM or /i386-freebsd/ =~ RUBY_PLATFORM ++if /linux/ =~ RUBY_PLATFORM or /freebsd/ =~ RUBY_PLATFORM + CONFIG['CC'] = `wx-config --cxx` + CONFIG['LDSHARED'].gsub!("gcc",`wx-config --cxx`.strip) + $CFLAGS += " `wx-config --cxxflags`" + $LDFLAGS += " `wx-config --libs` -Wl,--version-script,./version-script " + ["htmlprocessor.o", "htmlwindow.o", "htmleasyprinting.o"].each do |str| + $objs.delete(str) ++ end ++ if ($use_xrc) ++ $LDFLAGS += " -lwx_gtk2_xrc-2.4 " + end + + elsif /mingw32/ =~ RUBY_PLATFORM |