Ignore:
Timestamp:
May 12, 2008, 5:42:09 PM (17 years ago)
Author:
bird
Message:

Drop the .map files when using gcc, except of course, for OS/2.

File:
1 edited

Legend:

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

    r1547 r1612  
    2626#
    2727# As a special exception you are granted permission to include this file, via
    28 # the kmk include directive, as you wish without this in itself causing the 
    29 # resulting makefile, program or whatever to be covered by the GPL license. 
     28# the kmk include directive, as you wish without this in itself causing the
     29# resulting makefile, program or whatever to be covered by the GPL license.
    3030# This exception does not however invalidate any other reasons why the makefile,
    3131# program, whatever should not be covered the GPL.
     
    8585TOOL_MINGW32_LD  ?= $(TOOL_MINGW32_PREFIX)gcc$(TOOL_MINGW32_HOSTSUFF_EXE)
    8686endif
    87 TOOL_MINGW32_LD_MAP ?= -Wl,-Map -Wl,$(1) -Wl,--cref
    88 TOOL_MINGW32_LD_SYSMOD_MAP ?= -Map $(1) --cref
    8987TOOL_MINGW32_DLLWRAP ?= $(TOOL_MINGW32_PREFIX)dllwrap$(TOOL_MINGW32_HOSTSUFF_EXE)
    9088TOOL_MINGW32_DLLTOOL ?= $(TOOL_MINGW32_PREFIX)dlltool$(TOOL_MINGW32_HOSTSUFF_EXE)
     
    236234        $(QUIET)$(TOOL_MINGW32_LD) $(flags) -o $(out) $(objs)\
    237235                $(foreach p,$(libpath), -L$(p))\
    238                 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\
    239                 $(call TOOL_MINGW32_LD_MAP,$(outbase).map)
     236                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
    240237endef
    241238
     
    256253TOOL_MINGW32_LINK_DLL_OUTPUT =
    257254TOOL_MINGW32_LINK_DLL_OUTPUT_MAYBE = $(outbase).a $(outbase).exp $(PATH_LIB)/$(notdir $(outbase)).exp $(PATH_LIB)/$(notdir $(outbase)).a
    258 ## @todo Find a better solution for installing the extra files (.a, .exp, .pdb, .map, etc).
     255## @todo Find a better solution for installing the extra files (.a, .exp, .pdb, etc).
    259256TOOL_MINGW32_LINK_DLL_DEPEND = $(foreach lib,$(libs),$(if $(findstring $(lib),$(subst /,x,$(lib))),, $(lib)))\
    260257        $(filter %.def %.res,$(othersrc))
     
    269266                $(objs)\
    270267                $(foreach p,$(libpath), -L$(p))\
    271                 $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))\
    272                 $(call TOOL_MINGW32_LD_MAP,$(outbase).map)
     268                $(foreach lib,$(libs), $(if $(findstring $(lib),$(subst /,x,$(lib))), -l$(patsubst lib%,%,$(basename $(lib))), $(lib)))
    273269        $(QUIET)$(CP) $(outbase).exp $(outbase).a $(PATH_LIB)/
    274270endef
    275 ## @todo seperate install stuff!
     271## @todo separate install stuff!
Note: See TracChangeset for help on using the changeset viewer.