Ignore:
Timestamp:
Dec 13, 2011, 1:48:32 PM (14 years ago)
Author:
bird
Message:

tools/VCC*.kmk: Use response files when linking.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/VCC100AMD64.kmk

    r2524 r2557  
    247247TOOL_VCC100AMD64_LINK_LIBRARY_OUTPUT_MAYBE = $(outbase).lst $(outbase).exp $(outbase).pdb
    248248define TOOL_VCC100AMD64_LINK_LIBRARY_CMDS
    249         $(QUIET)$(APPEND) -n $(outbase).rsp \
     249        $(QUIET)$(APPEND) -tn $(outbase).rsp \
    250250                $(foreach arg,\
    251251                        $(subst /,\\,$(objs) \
     
    273273TOOL_VCC100AMD64_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    274274TOOL_VCC100AMD64_LINK_PROGRAM_DEPORD =
    275 TOOL_VCC100AMD64_LINK_PROGRAM_OUTPUT = $(outbase).map
     275TOOL_VCC100AMD64_LINK_PROGRAM_OUTPUT = $(outbase).map $(outbase).rsp
    276276TOOL_VCC100AMD64_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest
    277277TOOL_VCC100AMD64_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).pdb
    278278TOOL_VCC100AMD64_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
    279279define TOOL_VCC100AMD64_LINK_PROGRAM_CMDS
     280        $(QUIET)$(APPEND) -tn $(outbase).rsp \
     281                $(foreach arg,\
     282                    $(subst /,\\,$(objs)) \
     283                    $(subst /,\\,$(libs)) \
     284                        ,\"$(arg)\")
    280285        $(QUIET)$(TOOL_VCC100AMD64_LD) $(flags) \
    281286                /OUT:$(out) \
     
    285290                $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
    286291                $(foreach p,$(libpath), /LIBPATH:$(p)) \
    287                 $(subst /,\\,$(objs)) \
    288                 $(subst /,\\,$(libs))
     292                @$(outbase).rsp
    289293        $(QUIET)$(TEST) -f $(out).manifest -- \
    290294                $(TOOL_VCC100AMD64_MT) -manifest $(subst /,\\,$(out)).manifest -outputresource:$(subst /,\\,$(out))
     
    308312TOOL_VCC100AMD64_LINK_DLL_DEPEND = $(objs) $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    309313TOOL_VCC100AMD64_LINK_DLL_DEPORD = $(call DIRDEP,$(PATH_STAGE_LIB))
    310 TOOL_VCC100AMD64_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp
     314TOOL_VCC100AMD64_LINK_DLL_OUTPUT = $(outbase).map $(outbase).lib $(outbase).exp $(outbase).rsp
    311315TOOL_VCC100AMD64_LINK_DLL_OUTPUT_MAYBE = $(outbase).ilk $(out).manifest $(PATH_STAGE_LIB)/$(notdir $(outbase)).lib $(PATH_STAGE_LIB)/$(notdir $(outbase)).exp
    312316TOOL_VCC100AMD64_LINK_DLL_OUTPUT_DEBUG = $(outbase).pdb
    313317TOOL_VCC100AMD64_LINK_DLL_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
    314318define TOOL_VCC100AMD64_LINK_DLL_CMDS
     319        $(QUIET)$(APPEND) -tn $(outbase).rsp \
     320                $(foreach arg,\
     321                    $(subst /,\\,$(objs)) \
     322                    $(subst /,\\,$(libs)) \
     323                        ,\"$(arg)\")
    315324        $(QUIET)$(TOOL_VCC100AMD64_LD) $(flags) \
    316325                /OUT:$(out) \
     
    322331                $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
    323332                $(foreach p,$(libpath), /LIBPATH:$(p)) \
    324                 $(subst /,\\,$(objs)) \
    325                 $(subst /,\\,$(libs))
     333                @$(outbase).rsp
    326334        $(QUIET)$(TEST) -f $(out).manifest -- \
    327335                $(TOOL_VCC100AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'
     
    347355TOOL_VCC100AMD64_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) $(othersrc)
    348356TOOL_VCC100AMD64_LINK_SYSMOD_DEPORD =
    349 TOOL_VCC100AMD64_LINK_SYSMOD_OUTPUT = $(outbase).map
     357TOOL_VCC100AMD64_LINK_SYSMOD_OUTPUT = $(outbase).map $(outbase).rsp
    350358TOOL_VCC100AMD64_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).lib $(outbase).exp $(outbase).ilk $(out).manifest
    351359TOOL_VCC100AMD64_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).pdb
    352360TOOL_VCC100AMD64_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).pdb=>$(basename $(3)).pdb
    353361define TOOL_VCC100AMD64_LINK_SYSMOD_CMDS
     362        $(QUIET)$(APPEND) -tn $(outbase).rsp \
     363                $(foreach arg,\
     364                    $(subst /,\\,$(objs)) \
     365                    $(subst /,\\,$(libs)) \
     366                        ,\"$(arg)\")
    354367        $(QUIET)$(TOOL_VCC100AMD64_LD) $(flags) \
    355368                /OUT:$(out) \
     
    359372                $(subst /,\\,$(filter %.exp %.res,$(othersrc))) \
    360373                $(foreach p,$(libpath), /LIBPATH:$(p)) \
    361                 $(subst /,\\,$(objs)) \
    362                 $(subst /,\\,$(libs))
     374                @$(outbase).rsp
    363375        $(QUIET)$(TEST) -f $(out).manifest -- \
    364376                $(TOOL_VCC100AMD64_MT) -manifest $(subst /,\\,$(out)).manifest '-outputresource:$(subst /,\\,$(out));#2'
Note: See TracChangeset for help on using the changeset viewer.