diff options
author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-31 13:22:46 +0000 |
---|---|---|
committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-31 13:22:46 +0000 |
commit | 5ec897d3061347d5e8fedc9135760a92ab4a310a (patch) | |
tree | db7a83f08fbfd9b368ec9951184d6cdc02b658f5 /ext/extmk.rb | |
parent | 86c90aea3612e901d24232b8ec476339175a6fb9 (diff) | |
download | ruby-5ec897d3061347d5e8fedc9135760a92ab4a310a.tar.gz |
* wrong regexp.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@3260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/extmk.rb')
-rw-r--r-- | ext/extmk.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index f4c5d47d20..c13c6e3f69 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -114,7 +114,7 @@ getopts('', 'extstatic', 'make:', 'make-flags:') $force_static = $OPT['extstatic'] == 'static' $make = $OPT['make'] || $make $mflags = Shellwords.shellwords($OPT['make-flags'] || "") -$mflags[0].sub!(/^[^-]/, '-\&') unless $mflags.empty? +$mflags[0].sub!(/^\w+$/, '-\&') unless $mflags.empty? $make, *$mflags[0, 0] = Shellwords.shellwords($make) mflags = $mflags.grep(/^-([^-].*)/) {$1}.join |