ext/charguess/extconf.rb in charguess-1.3 vs ext/charguess/extconf.rb in charguess-1.3.20110215234539
- old
+ new
@@ -4,14 +4,15 @@
require 'rake'
libcharguess = File.expand_path(File.dirname(__FILE__), "../libcharguess/cpp")
Dir.chdir(libcharguess) do
- sh("env CXXFLAGS=\"$CXXFLAGS -fPIC\" ./configure")
+ sh("./configure")
sh("make")
end
dir_config('charguess', libcharguess, libcharguess)
+find_header("intern.h", TRY_LINK)
if have_library('charguess') && have_library('stdc++') && have_header('charguess.h')
create_makefile('charguess')
else
raise "Charguess library not installed"