Changeset 2534 in kBuild
- Timestamp:
- Aug 2, 2011 2:13:06 PM (13 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC3OMF.kmk
r2431 r2534 253 253 -Zmap=$(outbase).map 254 254 $(QUIET)$(TOOL_GCC3OMF_LD) @$(outbase).rsp 255 if1of ($(ld_debug), split) 256 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GCC3OMF.) 257 endif 255 258 endef 256 259 … … 284 287 -Zmap=$(outbase).map 285 288 $(TOOL_GCC3OMF_LD) @$(outbase).rsp 289 if1of ($(ld_debug), split) 290 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GCC3OMF.) 291 endif 286 292 endef 287 293 … … 315 321 -Zmap=$(outbase).map 316 322 $(QUIET)$(TOOL_GCC3OMF_LD_SYSMOD) @$(outbase).rsp 317 endef 318 323 if1of ($(ld_debug), split) 324 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GCC3OMF.) 325 endif 326 endef 327 -
trunk/kBuild/tools/GCC3PLAIN.kmk
r2431 r2534 258 258 $(foreach p,$(libpath), -L$(p))\ 259 259 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 260 if1of ($(ld_debug), split) 261 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GCC3PLAIN.) 262 endif 260 263 endef 261 264 … … 286 289 $(foreach p,$(libpath), -L$(p))\ 287 290 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 291 if1of ($(ld_debug), split) 292 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GCC3PLAIN.) 293 endif 288 294 endef 289 295 … … 317 323 $(foreach p,$(libpath), -L$(p))\ 318 324 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 319 endef 320 325 if1of ($(ld_debug), split) 326 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GCC3PLAIN.) 327 endif 328 endef 329 -
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 -
trunk/kBuild/tools/GXX32.kmk
r2431 r2534 59 59 TOOL_GXX32_LD_SYSMOD_MAP ?= 60 60 endif 61 if1of ($(KBUILD_HOST), solaris) 62 TOOL_GXX32_OBJCOPY ?= gobjcopy$(HOSTSUFF_EXE) 63 else 64 TOOL_GXX32_OBJCOPY ?= objcopy$(HOSTSUFF_EXE) 65 endif 66 61 67 ifdef SLKRUNS 62 TOOL_GXX32_CC += -fmessage-length=063 TOOL_GXX32_CXX += -fmessage-length=068 TOOL_GXX32_CC += -fmessage-length=0 69 TOOL_GXX32_CXX += -fmessage-length=0 64 70 endif 65 71 … … 93 99 TOOL_GXX32_LDFLAGS.debug ?= -g 94 100 TOOL_GXX32_LDFLAGS.profile ?= -g 101 95 102 96 103 … … 169 176 -o $(obj)\ 170 177 - 178 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 171 179 endef 172 180 else # !KBUILD_USE_KOBJCACHE … … 178 186 -o $(obj)\ 179 187 $(abspath $(source)) 188 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 180 189 endef 181 190 endif # !KBUILD_USE_KOBJCACHE … … 204 213 -o $(obj)\ 205 214 $(abspath $(source)) 215 $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" "" 206 216 endef 207 217 … … 245 255 TOOL_GXX32_LINK_PROGRAM_OUTPUT = 246 256 TOOL_GXX32_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map 257 TOOL_GXX32_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 258 TOOL_GXX32_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 247 259 TOOL_GXX32_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 248 260 TOOL_GXX32_LINK_PROGRAM_DEPORD = … … 252 264 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 253 265 $(call TOOL_GXX32_LD_MAP,$(outbase).map) 266 ifeq ($(ld_debug),split) 267 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 268 $(CHMOD) a-x $(outbase).debug 269 $(TOOL_GXX32_OBJCOPY) --strip-debug $(out) 270 $(TOOL_GXX32_OBJCOPY) --add-gnu-debuglink=$(outbase).debug $(out) 271 endif 254 272 endef 255 273 -
trunk/kBuild/tools/GXX3OMF.kmk
r2431 r2534 253 253 -Zmap=$(outbase).map 254 254 $(QUIET)$(TOOL_GXX3OMF_LD) @$(outbase).rsp 255 if1of ($(ld_debug), split) 256 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GXX3OMF.) 257 endif 255 258 endef 256 259 … … 284 287 -Zmap=$(outbase).map 285 288 $(TOOL_GXX3OMF_LD) @$(outbase).rsp 289 if1of ($(ld_debug), split) 290 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GXX3OMF.) 291 endif 286 292 endef 287 293 … … 315 321 -Zmap=$(outbase).map 316 322 $(QUIET)$(TOOL_GXX3OMF_LD_SYSMOD) @$(outbase).rsp 317 endef 318 323 if1of ($(ld_debug), split) 324 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GXX3OMF.) 325 endif 326 endef 327 -
trunk/kBuild/tools/GXX3PLAIN.kmk
r2431 r2534 258 258 $(foreach p,$(libpath), -L$(p))\ 259 259 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 260 if1of ($(ld_debug), split) 261 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GXX3PLAIN.) 262 endif 260 263 endef 261 264 … … 286 289 $(foreach p,$(libpath), -L$(p))\ 287 290 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 291 if1of ($(ld_debug), split) 292 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GXX3PLAIN.) 293 endif 288 294 endef 289 295 … … 317 323 $(foreach p,$(libpath), -L$(p))\ 318 324 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 319 endef 320 325 if1of ($(ld_debug), split) 326 $(warning kBuild: Debug splitting is requrested for $(target), but this feature is not supported by GXX3PLAIN.) 327 endif 328 endef 329 -
trunk/kBuild/tools/GXX64.kmk
r2431 r2534 59 59 TOOL_GXX64_LD_SYSMOD_MAP ?= 60 60 endif 61 if1of ($(KBUILD_HOST), solaris) 62 TOOL_GXX64_OBJCOPY ?= gobjcopy$(HOSTSUFF_EXE) 63 else 64 TOOL_GXX64_OBJCOPY ?= objcopy$(HOSTSUFF_EXE) 65 endif 66 61 67 ifdef SLKRUNS 62 68 TOOL_GXX64_CC += -fmessage-length=0 … … 248 254 TOOL_GXX64_LINK_PROGRAM_OUTPUT = 249 255 TOOL_GXX64_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map 256 TOOL_GXX64_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 257 TOOL_GXX64_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 250 258 TOOL_GXX64_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 251 259 TOOL_GXX64_LINK_PROGRAM_DEPORD = … … 255 263 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 256 264 $(call TOOL_GXX64_LD_MAP,$(outbase).map) 265 ifeq ($(ld_debug),split) 266 $(TOOL_GXX64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 267 $(CHMOD) a-x $(outbase).debug 268 $(TOOL_GXX64_OBJCOPY) --strip-debug $(out) 269 $(TOOL_GXX64_OBJCOPY) --add-gnu-debuglink=$(outbase).debug $(out) 270 endif 257 271 endef 258 272
Note:
See TracChangeset
for help on using the changeset viewer.