How can I set SAMBA_VERSION_VENDOR_FUNCTION in a waf build?

Andrew Bartlett abartlet at samba.org
Wed Feb 6 22:42:32 MST 2013


On Wed, 2013-02-06 at 15:03 -0800, Richard Sharpe wrote:
> On Wed, Feb 6, 2013 at 1:56 PM, Andrew Bartlett <abartlet at samba.org> wrote:
> > On Wed, 2013-02-06 at 13:13 -0800, Richard Sharpe wrote:
> >> Hi folks,
> >>
> >> How do I set that particular macro?
> >
> > Perhaps (untested) set it using
> > CFLAGS="-DSAMBA_VERSION_VENDOR_FUNCTION=richards_version_fn()" ./configure && make
> 
> Nope. It used during configure but it is not passed through. That is,
> it does not seem to be defined in the generate Makefile. Thus, waf
> build does not seem to get this.

Waf does not generate a Makefile, configure and make are just wrappers
around waf for convenience. 

What does waf -v or waf -vv give when you use this?  

Andrew Bartlett

-- 
Andrew Bartlett                                http://samba.org/~abartlet/
Authentication Developer, Samba Team           http://samba.org




More information about the samba-technical mailing list