diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-04 05:44:53 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-04 05:44:53 +0000 |
commit | b054ffab160855564c06f03c7f6b44922dc4b16d (patch) | |
tree | f156c535554981f04ee8f99c422d0f727e1b3a0b /ext/extmk.rb.in | |
parent | 50bb8a8699f34884077cadc0383757536e2dc0cf (diff) |
* configure.in (RUBY_PROG_GNU_LD): check whether the linker is GNU ld.
* ext/extmk.rb.in (create_makefile): add -Wl,-no-undefined to $DLDFLAGS
on Linux if GNU ld is used and --enable-shared is specified.
* configure.in (RUBY_MINGW32): backport from 1.7.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_6@2932 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb.in')
-rw-r--r-- | ext/extmk.rb.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/extmk.rb.in b/ext/extmk.rb.in index e82e6abb27..dceed036ab 100644 --- a/ext/extmk.rb.in +++ b/ext/extmk.rb.in @@ -377,6 +377,9 @@ def create_makefile(target) end $DLDFLAGS = '@DLDFLAGS@' + if /linux/ =~ RUBY_PLATFORM and $configure_args['--enable-shared'] and "@GNU_LD@" == "yes" + $DLDFLAGS << " -Wl,-no-undefined" + end if $configure_args['--enable-shared'] or "@LIBRUBY@" != "@LIBRUBY_A@" $libs = "@LIBRUBYARG@ " + $libs |