ext/extconf.rb in gmp-0.6.47 vs ext/extconf.rb in gmp-0.7.19
- old
+ new
@@ -41,17 +41,25 @@
if (begin; JRuby; rescue NameError; end) != nil
$CFLAGS += ' -DRUBY_ENGINE_JRUBY'
end
+# This test is actually due to a Clang 3.3 shortcoming, included in OS X 10.9,
+# fixed in Clang 3.4:
+# http://llvm.org/releases/3.4/tools/clang/docs/ReleaseNotes.html#new-compiler-flags
if try_compile('', '-O6')
$CFLAGS += ' -Wall -W -O6 -g'
else
$CFLAGS += ' -Wall -W -O3 -g'
end
if ok
create_makefile('gmp')
else
+ $stderr.puts "*********************************************************************"
+ $stderr.puts "Your compiler was unable to link to GMP while installing the gmp gem."
+ $stderr.puts "Please install GMP before installing the gmp gem."
+ $stderr.puts "*********************************************************************"
+
raise "Unable to build, correct above errors and rerun"
end