diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-22 04:19:26 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-10-22 04:19:26 +0000 |
commit | db1c27bb3752307d6a0cd3d1f2cc9a69b5e715ab (patch) | |
tree | 9ca18bafd96f4a37b3c6ef3586d128166c6b5b0c /ext | |
parent | 79c8b98fac05a37cd4d83982e9ad2820a15de420 (diff) |
* instruby.rb: add dryrun mode.
* ext/extmk.rb (extmake): avoid Borland make's quirk behavior.
* lib/mkmf.rb (link_command): opt is not a makefile macro.
* bcc32/Makefile.sub ($(LIBRUBY_SO) $(LIBRUBY)): EXTOBJS were not
linked.
* bcc32/Makefile.sub (ext/extinit.obj): missing.
* bcc32/Makefile.sub (TRY_LINK): options have to place before any
non-option arguments.
* win32/Makefile.sub (TRY_LINK): need -link and -libpath options.
* bcc32/Makefile.sub, win32/Makefile.sub (RANLIB): logical
operator never work with command.com.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
-rw-r--r-- | ext/extmk.rb | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index ebe562c7d4..5bb32f5843 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -200,9 +200,12 @@ if $extlist.size > 0 if RUBY_PLATFORM =~ /m68k-human|beos/ $extlibs.gsub!("-L/usr/local/lib", "") if $extlibs end - conf = ['SETUP='+$setup, 'EXTOBJS='+$extobjs.strip] - conf << 'EXTLIBS='+$extlibs.strip if $extlibs - conf << 'EXTLDFLAGS='+$extflags.strip if $extflags + conf = [ + ['SETUP', $setup], ['EXTOBJS', $extobjs], + ['EXTLIBS', $extlibs], ['EXTLDFLAGS', $extflags] + ].map {|n, v| + "#{n}=#{v}" if v and !(v = v.strip).empty? + }.compact puts conf ARGV.concat(conf) end |