ext/mpfi_complex/mpfi/extconf.rb in ruby-mpfi-0.0.4 vs ext/mpfi_complex/mpfi/extconf.rb in ruby-mpfi-0.0.5
- 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"
dir_config("mpfr")
dir_config("mpfi")
dir_config("gmp")