diff --git a/lib/mkmf.rb b/lib/mkmf.rb index c52a66643a..773cf9b7e7 100644 --- a/lib/mkmf.rb +++ b/lib/mkmf.rb @@ -657,6 +657,7 @@ MSG end def try_ldflags(flags, opts = {}) + opts = {:werror => true}.update(opts) if $mswin try_link(MAIN_DOES_NOTHING, flags, opts) end