ext/mpfi_matrix/mpfi/extconf.rb in ruby-mpfi-0.0.4 vs ext/mpfi_matrix/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
+
dir_config('mpfr')
dir_config('mpfi')
dir_config('gmp')
if have_header('mpfr.h') && have_library('mpfr') && have_header('mpfi.h') && have_library('mpfi') && have_header('gmp.h') && have_library('gmp')