diff options
Diffstat (limited to 'ext/extmk.rb')
-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 |