diff --git a/src/tools/como-win.jam b/src/tools/como-win.jam index 50b48c9d6..e1d309133 100644 --- a/src/tools/como-win.jam +++ b/src/tools/como-win.jam @@ -84,19 +84,14 @@ flags como-win FINDLIBS ; flags como-win FINDLIBS ; RM = [ common.rm-command ] ; +nl = " +" ; -#### Link #### - -rule link ( targets + : sources * : properties * ) -{ - common.response-file $(targets) : $(sources) : $(targets[2]) - : $(properties) ; -} # for como, we repeat all libraries so that dependencies are always resolved -actions link bind LIBRARIES RSP +actions link bind LIBRARIES { - $(CONFIG_COMMAND) --no_version --no_prelink_verbose $(LINKFLAGS) -o "$(<[1]:S=)" @"$(RSP:W)" "$(LIBRARIES)" "$(FINDLIBS:S=.lib)" && $(RM) "$(RSP)" + $(CONFIG_COMMAND) --no_version --no_prelink_verbose $(LINKFLAGS) -o "$(<[1]:S=)" @"@($(<[1]:W).rsp:E=$(nl)"$(>)")" "$(LIBRARIES)" "$(FINDLIBS:S=.lib)" } actions compile.c @@ -116,9 +111,9 @@ rule archive ( targets + : sources * : properties * ) common.response-file $(targets) : $(sources) : $(targets[2]) : $(properties) ; } -actions updated together piecemeal archive bind RSP +actions updated together piecemeal archive { - $(CONFIG_COMMAND) --no_version --no_prelink_verbose --prelink_object @"$(RSP:W)" - lib $(ARFLAGS) /nologo /out:"$(<:S=.lib)" @"$(RSP:W)" && $(RM) "$(RSP)" + $(CONFIG_COMMAND) --no_version --no_prelink_verbose --prelink_object "$(LIBRARIES)" + lib $(ARFLAGS) /nologo /out:"$(<:S=.lib)" "$(LIBRARIES)" }