From: Usaku NAKAMURA Date: 2010-06-14T10:19:25+09:00 Subject: [ruby-core:30759] [Backport #3437][Assigned] Does not compile on Windows with Visual Studio Issue #3437 has been updated by Usaku NAKAMURA. Status changed from Open to Assigned Assigned to set to Yuki Sonoda yugui-san, please commit this patch. this is a part of r25173, and already backported to ruby_1_8, ruby_1_8_7. Only ruby_1_9_1 and ruby_1_8_6 haven't backported it. Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 28315) +++ win32/Makefile.sub (working copy) @@ -629,9 +629,9 @@ s,@RPATHFLAG@,,;t t s,@LIBARG@,%s.lib,;t t s,@LINK_SO@,$$(LDSHARED) -Fe$$(@) $$(OBJS) $$(LIBS) $$(LOCAL_LIBS) -link $$(DLDFLAGS) -implib:$$(*F:.so=)-$$(arch).lib -pdb:$$(*F:.so=)-$$(arch).pdb -def:$$(DEFFILE),;t t !if $(MSC_VER) >= 1400 -s,@LINK_SO@,@$$(RUBY) -run -e wait_writable -- -n 10 $$(@),;t t -s,@LINK_SO@,$(MANIFESTTOOL) -manifest $$(@).manifest -outputresource:$$(@);2,;t t -s,@LINK_SO@,@$$(RM) $$(@:/=\).manifest,;t t +s,@LINK_SO@,@if exist $$(@).manifest $$(RUBY) -run -e wait_writable -- -n 10 $$(@),;t t +s,@LINK_SO@,@if exist $$(@).manifest $(MANIFESTTOOL) -manifest $$(@).manifest -outputresource:$$(@);2,;t t +s,@LINK_SO@,@if exist $$(@).manifest $$(RM) $$(@:/=\).manifest,;t t !endif s,@COMPILE_C@,$$(CC) $$(INCFLAGS) $$(CFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$(@) -c -Tc$$(<:\=/),;t t s,@COMPILE_CXX@,$$(CXX) $$(INCFLAGS) $$(CXXFLAGS) $$(CPPFLAGS) $$(COUTFLAG)$$(@) -c -Tp$$(<:\=/),;t t ---------------------------------------- http://redmine.ruby-lang.org/issues/show/3437 ---------------------------------------- http://redmine.ruby-lang.org