[PATCH] Allow ldflags to be used in SAMBA_MODULE()
abartlet at samba.org
Tue Jul 30 15:22:17 MDT 2013
On Tue, 2013-07-30 at 10:32 +0100, Jon Knight wrote:
> On Mon, 29 Jul 2013, Andrew Bartlett wrote:
> > So, the 'waf' way of doing this is to locate the library using the
> > configure stuff, and the depend on that library.
> I'm not sure I understand - I thought WAF was effectively a configuration
> scripting system that needed to be told how to pass this sort of
> information along to the compiler. Do you mean that there is some
> alternate mechanism in WAF that I should have used to do this with?
Yes. Once discovered, external libraries become waf targets, which can
be depended on with 'deps = libname'.
See for example how we find and use libldap, or if your library has
pkg-config support, then see examples like how we handle cups.
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz
More information about the samba-technical