diff options
| author | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-26 14:59:35 +0000 |
|---|---|---|
| committer | eban <eban@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2002-12-26 14:59:35 +0000 |
| commit | 4d8d49349ac955bf383ef5a154f20d69f46ab081 (patch) | |
| tree | 229554481b84d5b36da08e9648ed8d1bb7100f9d /ext | |
| parent | ceca93475237510451efcf5b7448bbc0df1d0a4a (diff) | |
| download | ruby-4d8d49349ac955bf383ef5a154f20d69f46ab081.tar.gz ruby-4d8d49349ac955bf383ef5a154f20d69f46ab081.tar.xz ruby-4d8d49349ac955bf383ef5a154f20d69f46ab081.zip | |
* ext/extmk.rb (create_makefile): check only `-' option.
* configure.in: cleanups for MinGW. remove -D__NO_ISOCEXT in $CFLAGS.
* win32/win32.h: prototypes for isinf, isnan are not needed on MinGW.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@3219 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext')
| -rw-r--r-- | ext/extmk.rb | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb index 876433d28..3ff15514d 100644 --- a/ext/extmk.rb +++ b/ext/extmk.rb @@ -1,4 +1,4 @@ -#! /usr/local/bin/ruby -s +#! /usr/local/bin/ruby # -*- ruby -*- $force_static = nil @@ -102,15 +102,11 @@ require 'getopts' getopts('', 'extstatic', 'make:', 'make-flags:') -$force_static = $OPT['extstatic'] +$force_static = $OPT['extstatic'] == 'static' $make = $OPT['make'] || $make $mflags = Shellwords.shellwords($OPT['make-flags'] || "") -if mflags = ENV["MAKEFLAGS"] - mflags, = mflags.split(nil, 2) -else - mflags = ENV["MFLAGS"] || "" -end +mflags = $mflags.grep(/^-([^-].*)/) {$1}.join $continue = mflags.include?(?k) $dryrun = mflags.include?(?n) |
