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 | 1b2075b2f5e937f5fa88287d431159fd08ad9fce (patch) | |
tree | db7a83f08fbfd9b368ec9951184d6cdc02b658f5 | |
parent | 840710719057414ebc600661f757b358da66a74d (diff) | |
download | ruby-1b2075b2f5e937f5fa88287d431159fd08ad9fce.tar.gz ruby-1b2075b2f5e937f5fa88287d431159fd08ad9fce.tar.xz ruby-1b2075b2f5e937f5fa88287d431159fd08ad9fce.zip |
* wrong regexp.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3260 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 f4c5d47d2..c13c6e3f6 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 |