diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-10 11:07:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-03-10 11:07:42 +0000 |
commit | d643dfe40c2143b8810911385f5b776f1d58ac70 (patch) | |
tree | c001936b12349d4af7cc81e8ed3d8bb94de2a9cf /win32/Makefile.sub | |
parent | 70eb64a941f9766449eb55040a8bad6e05ac98c6 (diff) | |
download | ruby-d643dfe40c2143b8810911385f5b776f1d58ac70.tar.gz ruby-d643dfe40c2143b8810911385f5b776f1d58ac70.tar.xz ruby-d643dfe40c2143b8810911385f5b776f1d58ac70.zip |
* win32/Makefile.sub (WARNFLAGS): uses -wd4996 instead of
CRTDEFFLAGS. cf. [ruby-core:22725]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22877 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'win32/Makefile.sub')
-rw-r--r-- | win32/Makefile.sub | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/win32/Makefile.sub b/win32/Makefile.sub index 94d0fe40e..de4eb7c80 100644 --- a/win32/Makefile.sub +++ b/win32/Makefile.sub @@ -158,6 +158,9 @@ RUNTIMEFLAG = -MD !if !defined(COMPILERFLAG) COMPILERFLAG = -Zm600 !endif +!if !defined(WARNFLAGS) +WARNFLAGS = -W2 -wd4996 +!endif !if !defined(CFLAGS) CFLAGS = $(RUNTIMEFLAG) $(DEBUGFLAGS) $(WARNFLAGS) $(OPTFLAGS) $(PROCESSOR_FLAG) $(COMPILERFLAG) !endif @@ -193,13 +196,12 @@ LDSHARED = $(LD) -LD XCFLAGS = -DRUBY_EXPORT -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) -I$(srcdir)/missing $(XCFLAGS) !if $(MSC_VER) >= 1400 # Prevents VC++ 2005 (cl ver 14) warnings -CRTDEFFLAGS = -D_CRT_SECURE_NO_DEPRECATE -D_CRT_NONSTDC_NO_DEPRECATE MANIFESTTOOL = mt -nologo LDSHARED_0 = @$(MINIRUBY) -run -e wait_writable -- -n 10 $@ LDSHARED_1 = $(MANIFESTTOOL) -manifest $(@).manifest -outputresource:$(@);2 LDSHARED_2 = @$(RM) $(@:/=\).manifest !endif -CPPFLAGS = $(CRTDEFFLAGS) $(DEFS) $(ARCHDEFS) $(CPPFLAGS) +CPPFLAGS = $(DEFS) $(ARCHDEFS) $(CPPFLAGS) DLDFLAGS = $(LDFLAGS) -dll SOLIBS = |