From ad9644f51d6331c52fef46fa682f021df733a878 Mon Sep 17 00:00:00 2001 From: Charles Lowell Date: Fri, 17 Feb 2012 09:08:39 -0600 Subject: [PATCH] If you're going to statically link, statically link. --- ext/v8/extconf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ext/v8/extconf.rb b/ext/v8/extconf.rb index 9e23984..dae2c60 100755 --- a/ext/v8/extconf.rb +++ b/ext/v8/extconf.rb @@ -18,8 +18,8 @@ $CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall" $CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g" $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" -$DEFLIBPATH.unshift(Libv8.library_path) -$LIBS << ' -lv8 -lpthread' +$LDFLAGS.insert 0, "#{Libv8.library_path}/libv8.#{$LIBEXT} " +$LIBS << ' -lpthread' CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/