diff options
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 06d46f106..50b2890a2 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -44,6 +44,7 @@ require 'shellwords' $topdir = File.expand_path(".") $top_srcdir = srcdir +# avoid warning for $VERBOSE mode Object.class_eval do remove_method :create_makefile end def create_makefile(target) @@ -64,6 +65,9 @@ def create_makefile(target) end $DLDFLAGS = CONFIG["DLDFLAGS"].dup + if /linux/ =~ RUBY_PLATFORM and $configure_args['--enable-shared'] and CONFIG["GNU_LD"] == "yes" + $DLDFLAGS << " -Wl,-no-undefined" + end if $configure_args['--enable-shared'] or CONFIG["LIBRUBY"] != CONFIG["LIBRUBY_A"] $libs = CONFIG["LIBRUBYARG"] + " " + $libs |
