VirtualBox

Changeset 3254 in kBuild


Ignore:
Timestamp:
Jan 2, 2019 4:06:50 AM (6 years ago)
Author:
bird
Message:

GXX3.kmk: More precompiled header work.

File:
1 edited

Legend:

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

    r3250 r3254  
    199199                -Wp,-MD,$(dep) -Wp,-MT,$(obj) -Wp,-MP\
    200200                -o $(obj) $(if-expr defined($(target)_PCH_HDR) \
    201                 ,-Winvalid-pch -H -include $(basename $($(target)_1_GCC_PCH_FILE)),) \
     201                ,-Winvalid-pch -include $(basename $($(target)_1_GCC_PCH_FILE)),) \
    202202                $(abspath $(source))
    203203        $(QUIET)$(APPEND) -n "$(dep)" "" "$(source):" ""
     
    260260## Link library
    261261# @param    $(target)   Normalized main target name.
    262 # @param    $(out)              Library name.
     262# @param    $(out)      Library name.
    263263# @param    $(objs)     Object files to put in the library.
    264264# @param    $(flags)    Flags.
    265265# @param    $(dirdep)   Directory creation dependency.
    266 # @param    $(deps)             Other dependencies.
     266# @param    $(deps)     Other dependencies.
    267267# @param    $(othersrc) Unhandled sources.
    268268# @param    $(outbase)  Output basename (full). Use this for list files and such.
     
    274274        $(QUIET)$(APPEND) $(out).ar-script 'CREATE $(out)'
    275275        $(QUIET)$(APPEND) -n $(out).ar-script \
    276                 $(foreach o,$(objs), 'ADDMOD $(o)') \
     276                $(foreach o,$(filter-out %.h.gch,$(objs)), 'ADDMOD $(o)') \
    277277                $(foreach o,$(filter-out %.def %.imp %.dll,$(othersrc)), 'ADDLIB $(o)')
    278278        $(if $(filter %.def %.imp %.dll,$(othersrc))\
     
    306306TOOL_GXX3_LINK_PROGRAM_DEPORD =
    307307define TOOL_GXX3_LINK_PROGRAM_CMDS
    308         $(QUIET)$(TOOL_GXX3_LD) $(flags) -o $(out) $(objs)\
     308        $(QUIET)$(TOOL_GXX3_LD) $(flags) -o $(out) $(filter-out %.h.gch,$(objs))\
    309309                $(filter %.def, $(othersrc))\
    310310                $(foreach p,$(libpath), -L$(p))\
     
    342342        $(QUIET)$(TOOL_GXX3_LD) $(TOOL_GXX3_LDFLAGS.dll) $(flags) -o $(out)\
    343343                $(if $(filter-out win os2, $(KBUILD_TARGET)),$(call TOOL_GXX3_LD_SONAME,$(target),$(out)))\
    344                 $(objs)\
     344                $(filter-out %.h.gch,$(objs))\
    345345                $(filter %.def, $(othersrc))\
    346346                $(foreach p,$(libpath), -L$(p))\
     
    376376TOOL_GXX3_LINK_SYSMOD_DEPORD =
    377377define TOOL_GXX3_LINK_SYSMOD_CMDS
    378         $(QUIET)$(TOOL_GXX3_LD_SYSMOD) $(TOOL_GXX3_LDFLAGS.sysmod) $(flags) -o $(out) $(objs)\
     378        $(QUIET)$(TOOL_GXX3_LD_SYSMOD) $(TOOL_GXX3_LDFLAGS.sysmod) $(flags) -o $(out) $(filter-out %.h.gch,$(objs))\
    379379                $(filter %.def, $(othersrc))\
    380380                $(foreach p,$(libpath), -L$(p))\
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette