ruby-changes:11259
From: nobu <ko1@a...>
Date: Tue, 10 Mar 2009 13:46:01 +0900 (JST)
Subject: [ruby-changes:11259] Ruby:r22870 (trunk): * win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO
nobu 2009-03-10 13:45:51 +0900 (Tue, 10 Mar 2009) New Revision: 22870 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22870 Log: * win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO and so on. based on a patch by Charlie Savage at [ruby-core:22794] Modified files: trunk/ChangeLog trunk/win32/Makefile.sub Index: ChangeLog =================================================================== --- ChangeLog (revision 22869) +++ ChangeLog (revision 22870) @@ -1,5 +1,9 @@ -Tue Mar 10 12:27:52 2009 Nobuyoshi Nakada <nobu@r...> +Tue Mar 10 13:45:54 2009 Nobuyoshi Nakada <nobu@r...> + * win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO + and so on. based on a patch by Charlie Savage at + [ruby-core:22794] + * win32/Makefile.sub (config.h): passes LDFLAGS to rbconfig.rb so that extconf.rb could refer it. [ruby-core:22725] Index: win32/Makefile.sub =================================================================== --- win32/Makefile.sub (revision 22869) +++ win32/Makefile.sub (revision 22870) @@ -167,7 +167,6 @@ !if !defined(LDFLAGS) LDFLAGS = -incremental:no -debug -opt:ref -opt:icf !endif -LDFLAGS = -link $(LDFLAGS) !if !defined(XLDFLAGS) XLDFLAGS = -stack:$(STACK) !endif @@ -653,7 +652,7 @@ s,@LIBPATHFLAG@, -libpath:"%s",;t t s,@RPATHFLAG@,,;t t s,@LIBARG@,%s.lib,;t t -s,@LINK_SO@,$$(LDSHARED) -Fe$$(@) $$(OBJS) $$(LIBS) $$(LOCAL_LIBS) $$(DLDFLAGS) -implib:$$(*F:.so=)-$$(arch).lib -pdb:$$(*F:.so=)-$$(arch).pdb -def:$$(DEFFILE),;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 @@ -689,7 +688,7 @@ miniruby$(EXEEXT): @echo. $(LIBS) - $(PURIFY) $(CC) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(LIBS) -Fe$@ $(LDFLAGS) + $(PURIFY) $(CC) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(LIBS) -Fe$@ -link $(LDFLAGS) @$(RM) miniruby.lib miniruby.exp miniruby.exe -v $(LDSHARED_1) @@ -701,7 +700,7 @@ !if "$(PROGRAM)" != "" $(PROGRAM): $(MAINOBJ) $(LIBRUBY_SO) $(RUBY_INSTALL_NAME).res $(PURIFY) $(CC) $(MAINOBJ) $(RUBY_INSTALL_NAME).res \ - $(OUTFLAG)$@ $(LIBRUBYARG) $(LDFLAGS) $(XLDFLAGS) + $(OUTFLAG)$@ $(LIBRUBYARG) -link $(LDFLAGS) $(XLDFLAGS) $(LDSHARED_0) $(LDSHARED_1) $(LDSHARED_2) @@ -711,7 +710,7 @@ $(WPROGRAM): $(MAINOBJ) $(WINMAINOBJ) $(LIBRUBY_SO) $(RUBYW_INSTALL_NAME).res $(PURIFY) $(CC) $(MAINOBJ) $(WINMAINOBJ) \ $(RUBYW_INSTALL_NAME).res $(OUTFLAG)$@ $(LIBRUBYARG) \ - $(LDFLAGS) $(XLDFLAGS) -subsystem:Windows + -link $(LDFLAGS) $(XLDFLAGS) -subsystem:Windows $(LDSHARED_0) $(LDSHARED_1) $(LDSHARED_2) @@ -727,7 +726,7 @@ @echo. $(DLDOBJS) @-$(PRE_LIBRUBY_UPDATE) $(LDSHARED) $(MAINOBJ) $(DLDOBJS) $(LIBRUBY_A) \ - $(RUBY_SO_NAME).res $(LIBS) -Fe$@ $(LDFLAGS) \ + $(RUBY_SO_NAME).res $(LIBS) -Fe$@ -link $(LDFLAGS) \ $(LIBRUBY_DLDFLAGS) @$(RM) dummy.lib dummy.exp $(LDSHARED_0) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/