Changeset 3254 in kBuild
- Timestamp:
- Jan 2, 2019 4:06:50 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GXX3.kmk
r3250 r3254 199 199 -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\ 200 200 -o $(obj) $(if-expr defined($(target)_PCH_HDR) \ 201 ,-Winvalid-pch - H -include $(basename $($(target)_1_GCC_PCH_FILE)),) \201 ,-Winvalid-pch -include $(basename $($(target)_1_GCC_PCH_FILE)),) \ 202 202 $(abspath $(source)) 203 203 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" … … 260 260 ## Link library 261 261 # @param $(target) Normalized main target name. 262 # @param $(out) 262 # @param $(out) Library name. 263 263 # @param $(objs) Object files to put in the library. 264 264 # @param $(flags) Flags. 265 265 # @param $(dirdep) Directory creation dependency. 266 # @param $(deps) 266 # @param $(deps) Other dependencies. 267 267 # @param $(othersrc) Unhandled sources. 268 268 # @param $(outbase) Output basename (full). Use this for list files and such. … … 274 274 $(QUIET)$(APPEND) $(out).ar-script 'CREATE $(out)' 275 275 $(QUIET)$(APPEND) -n $(out).ar-script \ 276 $(foreach o,$( objs), 'ADDMOD $(o)') \276 $(foreach o,$(filter-out %.h.gch,$(objs)), 'ADDMOD $(o)') \ 277 277 $(foreach o,$(filter-out %.def %.imp %.dll,$(othersrc)), 'ADDLIB $(o)') 278 278 $(if $(filter %.def %.imp %.dll,$(othersrc))\ … … 306 306 TOOL_GXX3_LINK_PROGRAM_DEPORD = 307 307 define TOOL_GXX3_LINK_PROGRAM_CMDS 308 $(QUIET)$(TOOL_GXX3_LD) $(flags) -o $(out) $( objs)\308 $(QUIET)$(TOOL_GXX3_LD) $(flags) -o $(out) $(filter-out %.h.gch,$(objs))\ 309 309 $(filter %.def, $(othersrc))\ 310 310 $(foreach p,$(libpath), -L$(p))\ … … 342 342 $(QUIET)$(TOOL_GXX3_LD) $(TOOL_GXX3_LDFLAGS.dll) $(flags) -o $(out)\ 343 343 $(if $(filter-out win os2, $(KBUILD_TARGET)),$(call TOOL_GXX3_LD_SONAME,$(target),$(out)))\ 344 $( objs)\344 $(filter-out %.h.gch,$(objs))\ 345 345 $(filter %.def, $(othersrc))\ 346 346 $(foreach p,$(libpath), -L$(p))\ … … 376 376 TOOL_GXX3_LINK_SYSMOD_DEPORD = 377 377 define TOOL_GXX3_LINK_SYSMOD_CMDS 378 $(QUIET)$(TOOL_GXX3_LD_SYSMOD) $(TOOL_GXX3_LDFLAGS.sysmod) $(flags) -o $(out) $( objs)\378 $(QUIET)$(TOOL_GXX3_LD_SYSMOD) $(TOOL_GXX3_LDFLAGS.sysmod) $(flags) -o $(out) $(filter-out %.h.gch,$(objs))\ 379 379 $(filter %.def, $(othersrc))\ 380 380 $(foreach p,$(libpath), -L$(p))\
Note:
See TracChangeset
for help on using the changeset viewer.