ext/mpfr_matrix/mpfr/extconf.rb in ruby-mpfr-0.0.10 vs ext/mpfr_matrix/mpfr/extconf.rb in ruby-mpfr-0.0.11

- old
+ new

@@ -1,6 +1,20 @@ require 'mkmf' +i = 0 +while i < ARGV.size + case ARGV[i] + when '--ldflags' + if args = ARGV[i+1] + i += 1 + $LDFLAGS += " #{args}" + end + else + raise "Invalid option: #{ARGV[i]}" + end + i += 1 +end + $CFLAGS += " -Wall" REQUIRE_VERSION = 3 dir_config("mpfr")