Ignore:
Timestamp:
Aug 2, 2011, 9:05:34 PM (14 years ago)
Author:
bird
Message:

footer-pass2-compiling-targets.kmk,G??4MACHO.kmk: debug info splitting fixes (mac related + generic).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/tools/GCC4MACHO.kmk

    r2523 r2535  
    106106TOOL_GCC4MACHO_LDFLAGS.profile  ?= -g
    107107
     108TOOL_GCC4MACHO_STRIP_PROGRAM    ?= strip -SXxru
     109TOOL_GCC4MACHO_STRIP_DLL        ?= strip -Sxru
     110TOOL_GCC4MACHO_STRIP_SYSMOD     ?= strip -Sru
     111
    108112
    109113##
    110114# Calculate the files in the debug bundle.
    111115# @param    1           The whole output filename.
    112 # @param    2           The output filename sans suffix. 
     116# @param    2           The output filename sans suffix.
    113117TOOL_GCC4MACHO_DEBUG_BUNDLE_FN = \
    114118    $(1).dSYM/ \
     
    122126# Calculate the files in the debug bundle.
    123127# @param    1           The whole linker output filename.
    124 # @param    2           The linker output filename sans suffix. 
     128# @param    2           The linker output filename sans suffix.
    125129# @param    3           The desired install name (no dir slash).
     130# @remarks  The Info.plist has some reference to the original name, but gdb
     131#           does not care and only check for a symbol file in the DWARF
     132#           directory with the same name as the debugged module.
    126133TOOL_GCC4MACHO_DEBUG_INSTALL_FN= \
    127134    $(3).dSYM/ \
     
    130137    $(3).dSYM/Contents/Resources/DWARF/ \
    131138    $(1).dSYM/Contents/Info.plist=>$(3).dSYM/Contents/Info.plist \
    132     $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(1))
     139    $(1).dSYM/Contents/Resources/DWARF/$(notdir $(1))=>$(3).dSYM/Contents/Resources/DWARF/$(notdir $(3))
    133140
    134141
     
    388395                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))
    389396 ifeq ($(ld_debug),split)
    390         $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out)
     397        $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out)
     398        $(QUIET)$(TOOL_GCC4MACHO_STRIP_PROGRAM) $(out)
    391399 endif
    392400endef
     
    420428                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))
    421429 ifeq ($(ld_debug),split)
    422         $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out)
     430        $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out)
     431        $(QUIET)$(TOOL_GCC4MACHO_STRIP_DLL) $(out)
    423432 endif
    424433endef
     
    450459                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(lib)), $(lib)))
    451460 ifeq ($(ld_debug),split)
    452         $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) --verbose -o $(out).dSYM/ $(out)
     461        $(QUIET)$(TOOL_GCC4MACHO_DSYMUTIL) -o $(out).dSYM/ $(out)
     462        $(QUIET)$(TOOL_GCC4MACHO_STRIP_SYSMOD) $(out)
    453463 endif
    454464endef
Note: See TracChangeset for help on using the changeset viewer.