diff --git a/ext/v8/extconf.rb b/ext/v8/extconf.rb index 81dc0d36..9e23984e 100755 --- a/ext/v8/extconf.rb +++ b/ext/v8/extconf.rb @@ -7,7 +7,6 @@ require 'libv8' end -have_library('pthread') have_library('objc') if RUBY_PLATFORM =~ /darwin/ #we have to manually prepend the libv8 include path to INCFLAGS @@ -20,7 +19,7 @@ $CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic" $DEFLIBPATH.unshift(Libv8.library_path) -$LIBS << ' -lv8' +$LIBS << ' -lv8 -lpthread' CONFIG['LDSHARED'] = '$(CXX) -shared' unless RUBY_PLATFORM =~ /darwin/