Changeset 2534 for trunk/kBuild/tools/GXX3.kmk
- Timestamp:
- Aug 2, 2011, 4:13:06 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GXX3.kmk
r2431 r2534 64 64 TOOL_GXX3_LD_SYSMOD_MAP ?= 65 65 endif 66 if1of ($(KBUILD_HOST), solaris) 67 TOOL_GXX3_OBJCOPY ?= gobjcopy$(HOSTSUFF_EXE) 68 else 69 TOOL_GXX3_OBJCOPY ?= objcopy$(HOSTSUFF_EXE) 70 endif 71 66 72 ifdef SLKRUNS 67 73 TOOL_GXX3_CC += -fmessage-length=0 … … 257 263 TOOL_GXX3_LINK_PROGRAM_OUTPUT = 258 264 TOOL_GXX3_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map 265 TOOL_GXX3_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 266 TOOL_GXX3_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 259 267 TOOL_GXX3_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_GXX3_LD_MAP,$(outbase).map) 276 ifeq ($(ld_debug),split) 277 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 278 $(CHMOD) a-x $(outbase).debug 279 $(TOOL_GXX32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 280 endif 268 281 endef 269 282 … … 284 297 TOOL_GXX3_LINK_DLL_OUTPUT = 285 298 TOOL_GXX3_LINK_DLL_OUTPUT_MAYBE = $(outbase).map 299 TOOL_GXX3_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 300 TOOL_GXX3_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 286 301 TOOL_GXX3_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 287 302 $(filter %.def, $(othersrc)) … … 295 310 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 296 311 $(call TOOL_GXX3_LD_MAP,$(outbase).map) 312 ifeq ($(ld_debug),split) 313 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 314 $(CHMOD) a-x $(outbase).debug 315 $(TOOL_GXX32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 316 endif 297 317 endef 298 318 … … 313 333 TOOL_GXX3_LINK_SYSMOD_OUTPUT = 314 334 TOOL_GXX3_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 335 TOOL_GXX3_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 336 TOOL_GXX3_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 315 337 TOOL_GXX3_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_GXX3_LD_SYSMOD_MAP,$(outbase).map) 324 endef 325 346 ifeq ($(ld_debug),split) 347 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 348 $(CHMOD) a-x $(outbase).debug 349 $(TOOL_GXX32_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.