- Timestamp:
- Feb 4, 2007 2:37:42 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC.kmk
r782 r846 32 32 TOOL_GCC_AS ?= gcc$(HOSTSUFF_EXE) 33 33 TOOL_GCC_AR ?= ar$(HOSTSUFF_EXE) 34 TOOL_GCC_RANLIB ?= ranlib$(HOSTSUFF_EXE) 34 35 TOOL_GCC_LD ?= g++$(HOSTSUFF_EXE) 35 36 TOOL_GCC_LDFLAGS.dll.os2 ?= -Zdll 37 TOOL_GCC_LDFLAGS.dll.darwin ?= -dynamiclib 36 38 ifndef TOOL_GCC_LDFLAGS.$(BUILD_TARGET) 37 39 TOOL_GCC_LDFLAGS.dll ?= -shared … … 90 92 $(QUIET)$(TOOL_GCC_CC) -c\ 91 93 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 92 -Wp,-MD,$(dep) -Wp,-MT,$(o ut) \93 -o $(o ut)\94 -Wp,-MD,$(dep) -Wp,-MT,$(obj) \ 95 -o $(obj)\ 94 96 $(abspath $(source)) 95 97 endef … … 115 117 $(QUIET)$(TOOL_GCC_CXX) -c\ 116 118 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 117 -Wp,-MD,$(dep) -Wp,-MT,$(o ut) \118 -o $(o ut)\119 -Wp,-MD,$(dep) -Wp,-MT,$(obj) \ 120 -o $(obj)\ 119 121 $(abspath $(source)) 120 122 endef … … 140 142 $(QUIET)$(TOOL_GCC_AS) -c\ 141 143 $(flags) $(addprefix -I, $(incs)) $(addprefix -D, $(defs))\ 142 -Wp,-MD,$(dep) -Wp,-MT,$(o ut) \143 -o $(o ut)\144 -Wp,-MD,$(dep) -Wp,-MT,$(obj) \ 145 -o $(obj)\ 144 146 $(abspath $(source)) 145 147 endef … … 160 162 define TOOL_GCC_LINK_LIBRARY_CMDS 161 163 $(QUIET)$(TOOL_GCC_AR) $(flags) $(out) $(objs) 164 $(call xargs,$(QUIET)$(TOOL_GCC_AR) $(flags) $(out),$(objs)) 165 $(foreach lib,$(othersrc)\ 166 ,$(NL)$(TAB)$(call MSG_AR_MERGE,$(target),$(out),$(lib)) \ 167 $(NL)$(TAB)$(QUIET)$(RM_EXT) -f $(dir $(outbase))ar.tmp.dir/* \ 168 $(NL)$(TAB)$(QUIET)$(MKDIR) -p $(dir $(outbase))/ar.tmp.dir/ \ 169 $(NL)$(TAB)$(QUIET)(cd $(dir $(outbase))ar.tmp.dir/ \ 170 && $(TOOL_GCC_AR) x $(abspath $(lib)) \ 171 && $(TOOL_GCC_AR) $(flags) $(out) *) \ 172 $(NL)$(TAB)$(QUIET)$(RM_EXT) -f $(dir $(outbase))/ar.tmp.dir/* \ 173 $(NL)$(TAB)$(QUIET)$(RMDIR) $(dir $(outbase))ar.tmp.dir/) 174 $(QUIET)$(TOOL_GCC_RANLIB) $(out) 162 175 endef 163 176
Note:
See TracChangeset
for help on using the changeset viewer.