1 Index: project/swig/ruby/extconf.rb
2 ===================================================================
3 --- project/swig/ruby/extconf.rb (revision 1547)
4 +++ project/swig/ruby/extconf.rb (revision 1549)
6 create_makefile('librets_native')
8 orig_makefile = IO::read("Makefile")
9 +if RUBY_PLATFORM =~ /linux/
10 + # Make sure the proper version boost libraries are detected first by changing ruby's create_makefile library declaration order
11 + orig_makefile.gsub!(/LIBS = \$\(LIBRUBYARG_SHARED\)(.+)/, "LIBS = \\1 \$\(LIBRUBYARG_SHARED\)");
12 + orig_makefile.gsub!(/(-o \$@ \$\(OBJS\))( \$\(LIBPATH\) \$\(DLDFLAGS\) \$\(LOCAL_LIBS\))( \$\(LIBS\))/, "\\1\\3\\2")
14 File.open("Makefile", "w") do |mfile|
15 mfile << makefile_prefix
16 mfile << orig_makefile