summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/extmk.rb2
-rw-r--r--ext/win32ole/extconf.rb8
2 files changed, 4 insertions, 6 deletions
diff --git a/ext/extmk.rb b/ext/extmk.rb
index c98afdf440..e43638326a 100644
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -50,7 +50,7 @@ def extmake(target)
$srcdir = File.join($top_srcdir, "ext", $mdir)
unless $ignore
if $static ||
- older("./Makefile", *MTIMES + %w"#{$srcdir}/makefile.rb #{$srcdir}/extconf.rb")
+ older("./Makefile", *MTIMES + %W"#{$srcdir}/makefile.rb #{$srcdir}/extconf.rb")
then
$defs = []
Logging::logfile 'mkmf.log'
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
index f627fcabb4..c0dfd4c724 100644
--- a/ext/win32ole/extconf.rb
+++ b/ext/win32ole/extconf.rb
@@ -17,10 +17,8 @@ end
case RUBY_PLATFORM
when /mswin32/
- $CFLAGS='/W3'
-when /mingw/
- $CFLAGS='-DNONAMELESSUNION'
-when /cygwin/
- $CFLAGS='-DNONAMELESSUNION'
+ $CFLAGS += ' /W3'
+when /cygwin/, /mingw/
+ $defs << '-DNONAMELESSUNION'
end
create_win32ole_makefile