Changeset 2541 for trunk/kBuild/tools/GCC3.kmk
- Timestamp:
- Aug 3, 2011, 11:51:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3.kmk
r2431 r2541 64 64 TOOL_GCC3_LD_SYSMOD_MAP ?= 65 65 endif 66 if1of ($(KBUILD_HOST), solaris) 67 TOOL_GCC3_OBJCOPY ?= gobjcopy$(HOSTSUFF_EXE) 68 else 69 TOOL_GCC3_OBJCOPY ?= objcopy$(HOSTSUFF_EXE) 70 endif 71 66 72 ifdef SLKRUNS 67 73 TOOL_GCC3_CC += -fmessage-length=0 … … 257 263 TOOL_GCC3_LINK_PROGRAM_OUTPUT = 258 264 TOOL_GCC3_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map 265 TOOL_GCC3_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 266 TOOL_GCC3_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 259 267 TOOL_GCC3_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 260 268 $(filter %.def, $(othersrc)) … … 266 274 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 267 275 $(call TOOL_GCC3_LD_MAP,$(outbase).map) 276 ifeq ($(ld_debug),split) 277 $(TOOL_GCC3_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 278 $(CHMOD) a-x $(outbase).debug 279 $(TOOL_GCC3_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 280 endif 268 281 endef 269 282 … … 284 297 TOOL_GCC3_LINK_DLL_OUTPUT = 285 298 TOOL_GCC3_LINK_DLL_OUTPUT_MAYBE = $(outbase).map 299 TOOL_GCC3_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 300 TOOL_GCC3_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 286 301 TOOL_GCC3_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 287 302 $(filter %.def, $(othersrc)) … … 289 304 define TOOL_GCC3_LINK_DLL_CMDS 290 305 $(QUIET)$(TOOL_GCC3_LD) $(TOOL_GCC3_LDFLAGS.dll) $(flags) -o $(out)\ 291 $(if $(filter-out win 32os2, $(KBUILD_TARGET)),$(call TOOL_GCC3_LD_SONAME,$(target),$(out)))\306 $(if $(filter-out win os2, $(KBUILD_TARGET)),$(call TOOL_GCC3_LD_SONAME,$(target),$(out)))\ 292 307 $(objs)\ 293 308 $(filter %.def, $(othersrc))\ … … 295 310 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 296 311 $(call TOOL_GCC3_LD_MAP,$(outbase).map) 312 ifeq ($(ld_debug),split) 313 $(TOOL_GCC3_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 314 $(CHMOD) a-x $(outbase).debug 315 $(TOOL_GCC3_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 316 endif 297 317 endef 298 318 … … 313 333 TOOL_GCC3_LINK_SYSMOD_OUTPUT = 314 334 TOOL_GCC3_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 335 TOOL_GCC3_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 336 TOOL_GCC3_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 315 337 TOOL_GCC3_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 316 338 $(filter %.def, $(othersrc)) … … 322 344 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 323 345 $(call TOOL_GCC3_LD_SYSMOD_MAP,$(outbase).map) 324 endef 325 346 ifeq ($(ld_debug),split) 347 $(TOOL_GCC3_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 348 $(CHMOD) a-x $(outbase).debug 349 $(TOOL_GCC3_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 350 endif 351 endef 352
Note:
See TracChangeset
for help on using the changeset viewer.