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