ext/extconf.rb in google_hash-0.8.3 vs ext/extconf.rb in google_hash-0.8.4
- old
+ new
@@ -18,10 +18,12 @@
end
end
$CFLAGS += " -I./local_installed/include "
$CPPFLAGS += " -I./local_installed/include "
+
+puts "running from #{Dir.pwd}"
if RUBY_VERSION < '1.9'
# appears to need this to link using gcc on 1.8 [mingw at least]
$LDFLAGS += " -lstdc++ "
end
@@ -104,10 +106,10 @@
# write our Init method
template = ERB.new(File.read('template/main.cpp.erb'))
File.write 'main.cpp', template.result(binding)
-Config::CONFIG['CPP'] = "g++ -E" # else cannot check for c++ headers? huh wuh?
+RbConfig::CONFIG['CPP'] = "g++ -E" # else cannot check for c++ headers? huh wuh?
have_header('tr1/functional')
if have_header('functional') && OS.x? && !have_header('tr1/functional')
$CPPFLAGS += " -std=c++11 -stdlib=libc++ " # LLVM, updated to not have tr1 anymore, no idea what I'm doing here...
end