Changeset 2541 for trunk/kBuild/tools/GCC64.kmk
- Timestamp:
- Aug 3, 2011, 11:51:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC64.kmk
r2431 r2541 59 59 TOOL_GCC64_LD_SYSMOD_MAP ?= 60 60 endif 61 if1of ($(KBUILD_HOST), solaris) 62 TOOL_GCC64_OBJCOPY ?= gobjcopy$(HOSTSUFF_EXE) 63 else 64 TOOL_GCC64_OBJCOPY ?= objcopy$(HOSTSUFF_EXE) 65 endif 66 61 67 ifdef SLKRUNS 62 TOOL_GCC64_CC += -fmessage-length=063 TOOL_GCC64_CXX += -fmessage-length=068 TOOL_GCC64_CC += -fmessage-length=0 69 TOOL_GCC64_CXX += -fmessage-length=0 64 70 endif 65 71 … … 172 178 endef 173 179 else # !KBUILD_USE_KOBJCACHE 174 175 180 TOOL_GCC64_COMPILE_CXX_OUTPUT = 176 181 define TOOL_GCC64_COMPILE_CXX_CMDS … … 249 254 TOOL_GCC64_LINK_PROGRAM_OUTPUT = 250 255 TOOL_GCC64_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map 256 TOOL_GCC64_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 257 TOOL_GCC64_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 251 258 TOOL_GCC64_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 252 259 TOOL_GCC64_LINK_PROGRAM_DEPORD = … … 256 263 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 257 264 $(call TOOL_GCC64_LD_MAP,$(outbase).map) 265 ifeq ($(ld_debug),split) 266 $(TOOL_GCC64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 267 $(CHMOD) a-x $(outbase).debug 268 $(TOOL_GCC64_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 269 endif 258 270 endef 259 271 … … 274 286 TOOL_GCC64_LINK_DLL_OUTPUT = 275 287 TOOL_GCC64_LINK_DLL_OUTPUT_MAYBE = $(outbase).map 288 TOOL_GCC64_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 289 TOOL_GCC64_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 276 290 TOOL_GCC64_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 277 291 TOOL_GCC64_LINK_DLL_DEPORD = … … 283 297 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 284 298 $(call TOOL_GCC64_LD_MAP,$(outbase).map) 299 ifeq ($(ld_debug),split) 300 $(TOOL_GCC64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 301 $(CHMOD) a-x $(outbase).debug 302 $(TOOL_GCC64_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 303 endif 285 304 endef 286 305 … … 301 320 TOOL_GCC64_LINK_SYSMOD_OUTPUT = 302 321 TOOL_GCC64_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 322 TOOL_GCC64_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 323 TOOL_GCC64_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 303 324 TOOL_GCC64_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 304 325 TOOL_GCC64_LINK_SYSMOD_DEPORD = … … 308 329 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 309 330 $(call TOOL_GCC64_LD_SYSMOD_MAP,$(outbase).map) 310 endef 311 331 ifeq ($(ld_debug),split) 332 $(TOOL_GCC64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 333 $(CHMOD) a-x $(outbase).debug 334 $(TOOL_GCC64_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 335 endif 336 endef 337
Note:
See TracChangeset
for help on using the changeset viewer.