diff options
| author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-30 10:16:53 +0000 |
|---|---|---|
| committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-30 10:16:53 +0000 |
| commit | e18f8ffd7b91edcab7fdd81703bd9201fb75bfff (patch) | |
| tree | 0426b7cbae13dc413203200a97f253cd59c645c2 /ext | |
| parent | f8292491b30fa0150740519d05465ac0a717b7be (diff) | |
| download | ruby-e18f8ffd7b91edcab7fdd81703bd9201fb75bfff.tar.gz ruby-e18f8ffd7b91edcab7fdd81703bd9201fb75bfff.tar.xz ruby-e18f8ffd7b91edcab7fdd81703bd9201fb75bfff.zip | |
* ext/extmk.rb: split --make argument contains options, assume
the first word of --make-flags is always options even unless
preceeded by -, and ignore letter-case of options if nmake.
* instruby.rb: extract -n option also from --make and
--make-flags.
* bcc32/Makefile.sub, win32/Makefile.sub: not prepend - to
$(MFLAGS)
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3244 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 3ff15514d..5e86078d7 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -105,8 +105,11 @@ getopts('', 'extstatic', 'make:', 'make-flags:') $force_static = $OPT['extstatic'] == 'static' $make = $OPT['make'] || $make $mflags = Shellwords.shellwords($OPT['make-flags'] || "") +$mflags[0].sub!(/^(?=\w+)$/, "-") unless mflags.empty? +$make, *$mflags[0, 0] = Shellwords.shellwords($make) mflags = $mflags.grep(/^-([^-].*)/) {$1}.join +mflags.downcase! if $nmake == ?m $continue = mflags.include?(?k) $dryrun = mflags.include?(?n) |
