Skip to content

Commit

Permalink
For build with gentoo portage ruby must use lpthread after lv8 or -no…
Browse files Browse the repository at this point in the history
…-undefined flag will not allow to build
  • Loading branch information
kalabiyau committed Sep 21, 2011
1 parent 6d7e6f6 commit 1964f87
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions ext/v8/extconf.rb
Expand Up @@ -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
Expand All @@ -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/

Expand Down

0 comments on commit 1964f87

Please sign in to comment.