Permalink
Browse files

If you're going to statically link, statically link.

  • Loading branch information...
cowboyd committed Feb 17, 2012
1 parent bd4a38e commit ad9644f51d6331c52fef46fa682f021df733a878
Showing with 2 additions and 2 deletions.
  1. +2 −2 ext/v8/extconf.rb
View
@@ -18,8 +18,8 @@
$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/

0 comments on commit ad9644f

Please sign in to comment.