Changeset 2541 in kBuild
- Timestamp:
- Aug 3, 2011 9:51:30 AM (13 years ago)
- Location:
- trunk/kBuild/tools
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/kBuild/tools/GCC.kmk
r2431 r2541 206 206 $(QUIET)$(TOOL_GCC_LD) $(flags) -o $(out) $(objs) \ 207 207 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 208 if1of ($(ld_debug), split) 209 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GCC.) 210 endif 208 211 endef 209 212 … … 228 231 $(QUIET)$(TOOL_GCC_LD) $(TOOL_GCC_LDFLAGS.dll) $(flags) -o $(out) $(objs) \ 229 232 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 230 endef 231 233 if1of ($(ld_debug), split) 234 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GCC.) 235 endif 236 endef 237 -
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 -
trunk/kBuild/tools/GCC32.kmk
r2431 r2541 59 59 TOOL_GCC32_LD_SYSMOD_MAP ?= 60 60 endif 61 if1of ($(KBUILD_HOST), solaris) 62 TOOL_GCC32_OBJCOPY ?= gobjcopy$(HOSTSUFF_EXE) 63 else 64 TOOL_GCC32_OBJCOPY ?= objcopy$(HOSTSUFF_EXE) 65 endif 66 61 67 ifdef SLKRUNS 62 TOOL_GCC32_CC += -fmessage-length=063 TOOL_GCC32_CXX += -fmessage-length=068 TOOL_GCC32_CC += -fmessage-length=0 69 TOOL_GCC32_CXX += -fmessage-length=0 64 70 endif 65 71 … … 227 233 $(QUIET)$(APPEND) -n $(out).ar-script \ 228 234 $(foreach o,$(objs), 'ADDMOD $(o)') \ 229 $(foreach o,$(othersrc), 'ADDLIB $(o)') 235 $(foreach o,$(filter-out %.def %.imp,$(othersrc)), 'ADDLIB $(o)') 236 $(if $(filter %.def %.imp,$(othersrc))\ 237 ,$(TOOL_GCC32_AR_IMP) -o $(outbase).imp.a $(filter %.def %.imp,$(othersrc))\ 238 $(NL)$(TAB)$(QUIET)$(APPEND) $(out).ar-script 'ADDLIB $(outbase).imp.a') 230 239 $(QUIET)$(APPEND) $(out).ar-script 'SAVE' 231 240 $(QUIET)$(APPEND) $(out).ar-script 'END' … … 249 258 TOOL_GCC32_LINK_PROGRAM_OUTPUT = 250 259 TOOL_GCC32_LINK_PROGRAM_OUTPUT_MAYBE = $(outbase).map 251 TOOL_GCC32_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 260 TOOL_GCC32_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 261 TOOL_GCC32_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 262 TOOL_GCC32_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 263 $(filter %.def, $(othersrc)) 252 264 TOOL_GCC32_LINK_PROGRAM_DEPORD = 253 265 define TOOL_GCC32_LINK_PROGRAM_CMDS … … 256 268 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 257 269 $(call TOOL_GCC32_LD_MAP,$(outbase).map) 270 ifeq ($(ld_debug),split) 271 $(TOOL_GCC32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 272 $(CHMOD) a-x $(outbase).debug 273 $(TOOL_GCC32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 274 endif 258 275 endef 259 276 … … 274 291 TOOL_GCC32_LINK_DLL_OUTPUT = 275 292 TOOL_GCC32_LINK_DLL_OUTPUT_MAYBE = $(outbase).map 276 TOOL_GCC32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 293 TOOL_GCC32_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 294 TOOL_GCC32_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 295 TOOL_GCC32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 296 $(filter %.def, $(othersrc)) 277 297 TOOL_GCC32_LINK_DLL_DEPORD = 278 298 define TOOL_GCC32_LINK_DLL_CMDS … … 283 303 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 284 304 $(call TOOL_GCC32_LD_MAP,$(outbase).map) 305 ifeq ($(ld_debug),split) 306 $(TOOL_GCC32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 307 $(CHMOD) a-x $(outbase).debug 308 $(TOOL_GCC32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 309 endif 285 310 endef 286 311 … … 301 326 TOOL_GCC32_LINK_SYSMOD_OUTPUT = 302 327 TOOL_GCC32_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 303 TOOL_GCC32_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 328 TOOL_GCC32_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 329 TOOL_GCC32_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 330 TOOL_GCC32_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 331 $(filter %.def, $(othersrc)) 304 332 TOOL_GCC32_LINK_SYSMOD_DEPORD = 305 333 define TOOL_GCC32_LINK_SYSMOD_CMDS 306 334 $(QUIET)$(TOOL_GCC32_LD_SYSMOD) $(TOOL_GCC32_LDFLAGS.sysmod) $(flags) -o $(out) $(objs)\ 335 $(filter %.def, $(othersrc))\ 307 336 $(foreach p,$(libpath), -L$(p))\ 308 337 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 309 338 $(call TOOL_GCC32_LD_SYSMOD_MAP,$(outbase).map) 310 endef 311 339 ifeq ($(ld_debug),split) 340 $(TOOL_GCC32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 341 $(CHMOD) a-x $(outbase).debug 342 $(TOOL_GCC32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 343 endif 344 endef 345 -
trunk/kBuild/tools/GCC3PLAIN.kmk
r2534 r2541 259 259 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 260 260 if1of ($(ld_debug), split) 261 $(warning kBuild: Debug splitting is requ rested for $(target), but this feature is not supported by GCC3PLAIN.)261 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GCC3PLAIN.) 262 262 endif 263 263 endef … … 290 290 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 291 291 if1of ($(ld_debug), split) 292 $(warning kBuild: Debug splitting is requ rested for $(target), but this feature is not supported by GCC3PLAIN.)292 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GCC3PLAIN.) 293 293 endif 294 294 endef … … 324 324 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 325 325 if1of ($(ld_debug), split) 326 $(warning kBuild: Debug splitting is requ rested for $(target), but this feature is not supported by GCC3PLAIN.)327 endif 328 endef 329 326 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GCC3PLAIN.) 327 endif 328 endef 329 -
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 -
trunk/kBuild/tools/GXX.kmk
r2431 r2541 206 206 $(QUIET)$(TOOL_GXX_LD) $(flags) -o $(out) $(objs) \ 207 207 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 208 if1of ($(ld_debug), split) 209 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GXX.) 210 endif 208 211 endef 209 212 … … 228 231 $(QUIET)$(TOOL_GXX_LD) $(TOOL_GXX_LDFLAGS.dll) $(flags) -o $(out) $(objs) \ 229 232 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 230 endef 231 233 if1of ($(ld_debug), split) 234 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GXX.) 235 endif 236 endef 237 -
trunk/kBuild/tools/GXX3.kmk
r2534 r2541 275 275 $(call TOOL_GXX3_LD_MAP,$(outbase).map) 276 276 ifeq ($(ld_debug),split) 277 $(TOOL_GXX3 2_OBJCOPY) --only-keep-debug $(out) $(outbase).debug277 $(TOOL_GXX3_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 278 278 $(CHMOD) a-x $(outbase).debug 279 $(TOOL_GXX3 2_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out)279 $(TOOL_GXX3_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 280 280 endif 281 281 endef … … 304 304 define TOOL_GXX3_LINK_DLL_CMDS 305 305 $(QUIET)$(TOOL_GXX3_LD) $(TOOL_GXX3_LDFLAGS.dll) $(flags) -o $(out)\ 306 $(if $(filter-out win 32os2, $(KBUILD_TARGET)),$(call TOOL_GXX3_LD_SONAME,$(target),$(out)))\306 $(if $(filter-out win os2, $(KBUILD_TARGET)),$(call TOOL_GXX3_LD_SONAME,$(target),$(out)))\ 307 307 $(objs)\ 308 308 $(filter %.def, $(othersrc))\ … … 311 311 $(call TOOL_GXX3_LD_MAP,$(outbase).map) 312 312 ifeq ($(ld_debug),split) 313 $(TOOL_GXX3 2_OBJCOPY) --only-keep-debug $(out) $(outbase).debug313 $(TOOL_GXX3_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 314 314 $(CHMOD) a-x $(outbase).debug 315 $(TOOL_GXX3 2_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out)315 $(TOOL_GXX3_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 316 316 endif 317 317 endef … … 345 345 $(call TOOL_GXX3_LD_SYSMOD_MAP,$(outbase).map) 346 346 ifeq ($(ld_debug),split) 347 $(TOOL_GXX3 2_OBJCOPY) --only-keep-debug $(out) $(outbase).debug347 $(TOOL_GXX3_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 348 348 $(CHMOD) a-x $(outbase).debug 349 $(TOOL_GXX3 2_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out)349 $(TOOL_GXX3_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 350 350 endif 351 351 endef -
trunk/kBuild/tools/GXX32.kmk
r2534 r2541 101 101 102 102 103 104 103 ## Compile C source. 105 104 # @param $(target) Normalized main target name. … … 233 232 $(QUIET)$(APPEND) -n $(out).ar-script \ 234 233 $(foreach o,$(objs), 'ADDMOD $(o)') \ 235 $(foreach o,$(othersrc), 'ADDLIB $(o)') 234 $(foreach o,$(filter-out %.def %.imp,$(othersrc)), 'ADDLIB $(o)') 235 $(if $(filter %.def %.imp,$(othersrc))\ 236 ,$(TOOL_GXX3_AR_IMP) -o $(outbase).imp.a $(filter %.def %.imp,$(othersrc))\ 237 $(NL)$(TAB)$(QUIET)$(APPEND) $(out).ar-script 'ADDLIB $(outbase).imp.a') 236 238 $(QUIET)$(APPEND) $(out).ar-script 'SAVE' 237 239 $(QUIET)$(APPEND) $(out).ar-script 'END' … … 257 259 TOOL_GXX32_LINK_PROGRAM_OUTPUT_DEBUG = $(outbase).debug 258 260 TOOL_GXX32_LINK_PROGRAM_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 259 TOOL_GXX32_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 261 TOOL_GXX32_LINK_PROGRAM_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 262 $(filter %.def, $(othersrc)) 260 263 TOOL_GXX32_LINK_PROGRAM_DEPORD = 261 264 define TOOL_GXX32_LINK_PROGRAM_CMDS … … 267 270 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 268 271 $(CHMOD) a-x $(outbase).debug 269 $(TOOL_GXX32_OBJCOPY) --strip-debug $(out) 270 $(TOOL_GXX32_OBJCOPY) --add-gnu-debuglink=$(outbase).debug $(out) 272 $(TOOL_GXX32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 271 273 endif 272 274 endef … … 288 290 TOOL_GXX32_LINK_DLL_OUTPUT = 289 291 TOOL_GXX32_LINK_DLL_OUTPUT_MAYBE = $(outbase).map 290 TOOL_GXX32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 292 TOOL_GXX32_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 293 TOOL_GXX32_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 294 TOOL_GXX32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 295 $(filter %.def, $(othersrc)) 291 296 TOOL_GXX32_LINK_DLL_DEPORD = 292 297 define TOOL_GXX32_LINK_DLL_CMDS … … 297 302 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 298 303 $(call TOOL_GXX32_LD_MAP,$(outbase).map) 304 ifeq ($(ld_debug),split) 305 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 306 $(CHMOD) a-x $(outbase).debug 307 $(TOOL_GXX32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 308 endif 299 309 endef 300 310 … … 315 325 TOOL_GXX32_LINK_SYSMOD_OUTPUT = 316 326 TOOL_GXX32_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 317 TOOL_GXX32_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 327 TOOL_GXX32_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 328 TOOL_GXX32_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 329 TOOL_GXX32_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\ 330 $(filter %.def, $(othersrc)) 318 331 TOOL_GXX32_LINK_SYSMOD_DEPORD = 319 332 define TOOL_GXX32_LINK_SYSMOD_CMDS 320 333 $(QUIET)$(TOOL_GXX32_LD_SYSMOD) $(TOOL_GXX32_LDFLAGS.sysmod) $(flags) -o $(out) $(objs)\ 334 $(filter %.def, $(othersrc))\ 321 335 $(foreach p,$(libpath), -L$(p))\ 322 336 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 323 337 $(call TOOL_GXX32_LD_SYSMOD_MAP,$(outbase).map) 324 endef 325 338 ifeq ($(ld_debug),split) 339 $(TOOL_GXX32_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 340 $(CHMOD) a-x $(outbase).debug 341 $(TOOL_GXX32_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 342 endif 343 endef 344 -
trunk/kBuild/tools/GXX3PLAIN.kmk
r2534 r2541 259 259 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 260 260 if1of ($(ld_debug), split) 261 $(warning kBuild: Debug splitting is requ rested for $(target), but this feature is not supported by GXX3PLAIN.)261 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GXX3PLAIN.) 262 262 endif 263 263 endef … … 290 290 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 291 291 if1of ($(ld_debug), split) 292 $(warning kBuild: Debug splitting is requ rested for $(target), but this feature is not supported by GXX3PLAIN.)292 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GXX3PLAIN.) 293 293 endif 294 294 endef … … 324 324 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib))) 325 325 if1of ($(ld_debug), split) 326 $(warning kBuild: Debug splitting is requ rested for $(target), but this feature is not supported by GXX3PLAIN.)327 endif 328 endef 329 326 $(warning kBuild: Debug splitting is requested for $(target), but this feature is not supported by GXX3PLAIN.) 327 endif 328 endef 329 -
trunk/kBuild/tools/GXX64.kmk
r2534 r2541 66 66 67 67 ifdef SLKRUNS 68 TOOL_GXX64_CC += -fmessage-length=069 TOOL_GXX64_CXX += -fmessage-length=068 TOOL_GXX64_CC += -fmessage-length=0 69 TOOL_GXX64_CXX += -fmessage-length=0 70 70 endif 71 71 … … 266 266 $(TOOL_GXX64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 267 267 $(CHMOD) a-x $(outbase).debug 268 $(TOOL_GXX64_OBJCOPY) --strip-debug $(out) 269 $(TOOL_GXX64_OBJCOPY) --add-gnu-debuglink=$(outbase).debug $(out) 268 $(TOOL_GXX64_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 270 269 endif 271 270 endef … … 287 286 TOOL_GXX64_LINK_DLL_OUTPUT = 288 287 TOOL_GXX64_LINK_DLL_OUTPUT_MAYBE = $(outbase).map 288 TOOL_GXX64_LINK_DLL_OUTPUT_DEBUG = $(outbase).debug 289 TOOL_GXX64_LINK_DLL_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 289 290 TOOL_GXX64_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 290 291 TOOL_GXX64_LINK_DLL_DEPORD = … … 296 297 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 297 298 $(call TOOL_GXX64_LD_MAP,$(outbase).map) 299 ifeq ($(ld_debug),split) 300 $(TOOL_GXX64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 301 $(CHMOD) a-x $(outbase).debug 302 $(TOOL_GXX64_OBJCOPY) --strip-debug --strip-unneeded --add-gnu-debuglink=$(outbase).debug $(out) 303 endif 298 304 endef 299 305 … … 314 320 TOOL_GXX64_LINK_SYSMOD_OUTPUT = 315 321 TOOL_GXX64_LINK_SYSMOD_OUTPUT_MAYBE = $(outbase).map 322 TOOL_GXX64_LINK_SYSMOD_OUTPUT_DEBUG = $(outbase).debug 323 TOOL_GXX64_LINK_SYSMOD_DEBUG_INSTALL_FN = $(2).debug=>$(basename $(3)).debug 316 324 TOOL_GXX64_LINK_SYSMOD_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib))) 317 325 TOOL_GXX64_LINK_SYSMOD_DEPORD = … … 321 329 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))\ 322 330 $(call TOOL_GXX64_LD_SYSMOD_MAP,$(outbase).map) 323 endef 324 331 ifeq ($(ld_debug),split) 332 $(TOOL_GXX64_OBJCOPY) --only-keep-debug $(out) $(outbase).debug 333 $(CHMOD) a-x $(outbase).debug 334 $(TOOL_GXX64_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.