Boost logo

Boost-Build :

Subject: Re: [Boost-build] Is it possible to override the CONFIG_COMMAND ?
From: Steven Watanabe (watanabesj_at_[hidden])
Date: 2018-08-29 16:58:06


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


Boost-Build list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk