File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change
1
+ Thu Nov 26 17:54:37 2009 NAKAMURA Usaku <usa@ruby-lang.org>
2
+
3
+ * win32/{configure.bat, setup.mak, Makefile.sub}: add new configure
4
+ option ``--with-ntver''.
5
+
1
6
Thu Nov 26 11:42:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
2
7
3
8
* test/mkmf/base.rb: use $INCFLAGS to add -I option. [Bug#2387]
Original file line number Diff line number Diff line change @@ -116,6 +116,9 @@ PLATFORM = mswin32
116
116
!if !defined(RT)
117
117
!error RT not defined. Retry from configure pass.
118
118
!endif
119
+ !ifdef NTVER
120
+ ARCHDEFS = -D_WIN32_WINNT=$(NTVER ) $(ARCHDEFS )
121
+ !endif
119
122
120
123
arch = $(ARCH ) -$(PLATFORM )
121
124
sitearch = $(ARCH ) -$(RT )
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ if "%1" == "--path" goto :path
32
32
if " %1 " == " --with-baseruby" goto :baseruby
33
33
if " %1 " == " -h" goto :help
34
34
if " %1 " == " --help" goto :help
35
+ if " %1 " == " --with-ntver" goto :ntver
35
36
echo>> confargs.tmp %1 \
36
37
shift
37
38
goto :loop
@@ -107,6 +108,12 @@ goto :loop
107
108
echo>> confargs.tmp %1 \
108
109
shift
109
110
goto :loop
111
+ :ntver
112
+ echo>> ~tmp~.mak " NTVER=%2 " \
113
+ echo>> confargs.tmp %1 =%2 \
114
+ shift
115
+ shift
116
+ goto :loop
110
117
:extout
111
118
echo>> ~tmp~.mak " EXTOUT=%2 " \
112
119
echo>> confargs.tmp %1 =%2 \
@@ -137,7 +144,8 @@ goto :loop
137
144
echo --with-baseruby=RUBY use RUBY as baseruby [ruby]
138
145
echo --with-static-linked-ext link external modules statically
139
146
echo --disable-install-doc do not install rdoc indexes during install
140
- echo --enable-win95 enable win95 support
147
+ echo --disable-win95 disable win95 support
148
+ echo --with-ntver=0xXXXX target NT version (shouldn't use with old SDK)
141
149
del *.tmp
142
150
del ~tmp~.mak
143
151
goto :exit
Original file line number Diff line number Diff line change @@ -55,6 +55,9 @@ EXTOUT = $(EXTOUT)
55
55
!if defined(BASERUBY)
56
56
BASERUBY = $(BASERUBY )
57
57
!endif
58
+ !if defined(NTVER)
59
+ NTVER = $(NTVER )
60
+ !endif
58
61
<<
59
62
!if !defined(BASERUBY)
60
63
@for %I in (ruby.exe) do @echo BASERUBY = %~s$$PATH:I >> $(MAKEFILE)
You can’t perform that action at this time.
0 commit comments