From 1964f8797293db9aa22eaa76fff51b33dde42397 Mon Sep 17 00:00:00 2001 From: KalabiYau Date: Wed, 21 Sep 2011 14:40:57 +0400 Subject: [PATCH] For build with gentoo portage ruby must use lpthread after lv8 or -no-undefined flag will not allow to build --- ext/v8/extconf.rb | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ext/v8/extconf.rb b/ext/v8/extconf.rb index 81dc0d3..9e23984 100755 --- a/ext/v8/extconf.rb +++ b/ext/v8/extconf.rb @@ -7,7 +7,6 @@ rescue LoadError 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 += " -g" unless $CPPFLAGS.split.include? "-g" $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/