Re: Is it possible to override the CONFIG_COMMAND ?

Steven Watanabe via Boost-build <[email protected]>
Newsgroups gmane.comp.lib.boost.build
Organization Providere Consulting, Inc.
Message-ID <[email protected]>
AMDG

On 08/28/2018 08:21 PM, Kuhl, Brian wrote:
> Looking at some other generators I don't quite understand?
> Once I create an alternate generator, what next? Do I just make an action specifically named for that generator?
> 

  Yes, that's exactly what you should do,
though I would call it gcc.link.vxworks
to pick up the flags for gcc.link.

> Many Thanks,
> 
> Brian
> 
> g = [ new gcc-linking-generator gcc.vxworks.link
>       : OBJ LIB
>       : EXE
>       : <toolset>gcc <target-os>vxworks ] ;
> $(g).set-rule-name gcc.link ;
> generators.register $(g) ;
> 
> generators.override gcc.vxworks.link : gcc.link ;
> 
> .LD ?= ldppc ;
> 
> actions gcc.vxworks.link bind LIBRARIES {
>     {
>     $(.LD) $(USER_OPTIONS) -L"$(LINKPATH)" -o "$(<)" $(CRT0_OBJ) "$(>)" $(START-GROUP) $(LIBRARIES) $(FINDLIBS-ST-PFX) -l$(FINDLIBS-ST) $(FINDLIBS-SA-PFX) -l$(FINDLIBS-SA) $(END-GROUP)  $(OPTIONS) 
>   }
> 
> 

In Christ,
Steven Watanabe
_______________________________________________
Unsubscribe & other changes: https://lists.boost.org/mailman/listinfo.cgi/boost-build
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.