mirror of
https://github.com/rubyjs/therubyracer
synced 2023-03-27 23:21:42 -04:00
manually prepend the libv8 include path to $INCFLAGS to avoid pulling in different versions of libv8.
This commit is contained in:
parent
0bc81b032b
commit
3f580dd2d7
1 changed files with 5 additions and 3 deletions
|
@ -7,12 +7,14 @@ rescue LoadError
|
|||
require 'libv8'
|
||||
end
|
||||
|
||||
puts "Compiling The Ruby Racer..."
|
||||
|
||||
find_header('v8.h', Libv8.include_path)
|
||||
have_library('pthread')
|
||||
have_library('objc') if RUBY_PLATFORM =~ /darwin/
|
||||
|
||||
#we have to manually prepend the libv8 include path to INCFLAGS
|
||||
#since find_header() does not actually work as advertized.
|
||||
#see https://github.com/cowboyd/therubyracer/issues/91
|
||||
$INCFLAGS.insert 0, "-I#{Libv8.include_path} "
|
||||
|
||||
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
|
||||
$CPPFLAGS += " -g" unless $CPPFLAGS.split.include? "-g"
|
||||
$CPPFLAGS += " -rdynamic" unless $CPPFLAGS.split.include? "-rdynamic"
|
||||
|
|
Loading…
Add table
Reference in a new issue