[PATCH] Allow ldflags to be used in SAMBA_MODULE()

Richard Sharpe realrichardsharpe at gmail.com
Wed Jul 24 10:51:38 MDT 2013


On Wed, Jul 24, 2013 at 8:12 AM, Jon Knight <J.P.Knight at lboro.ac.uk> wrote:
> Please find attached a small patch to buildtools/wafsamba/wafsamba.py which
> a couple of us have found useful.  We're developing a local VFS module that
> requires a number of external libraries to be included (for example libcurl
> - yes, our VFS module is doing Evil Web Stuff!).  This patch permits you to
> have a wscript_build in the source3/modules directory with an entry such as:
>
> bld.SAMBA3_MODULE('vfs_lboro_local',
>                   subsystem='vfs',
>                   source=VFS_LBORO_LOCAL_SRC,
>                   deps='samba-util ldap ',
>                   init_function='',
>                   internal_module=False,
>                   enabled=True,
>                   cflags='-lcurl -lssl -I/opt/ssl/include/ -L/opt/ssl/lib/
> -lcrypto -lyajl',
>                   ldflags='-lcurl -lssl -I/opt/ssl/include/ -L/opt/ssl/lib/
> -lcrypto -lyajl',
>                   )
>
> It doesn't seem to make any difference to the existing Samba modules but
> provides a bit of flexibility for VFS module authors such as ourselves.

Have you looked at developing your module outside of the Samba source tree?

There are instructions on how to do this, at least for the stuff in
source3 here: http://www.samba.org/~sharpe in The Samba VFS document.

I am just curious and will need to look at how much updating the
document needs in light of Samba 4 being out.

-- 
Regards,
Richard Sharpe
(何以解憂?唯有杜康。--曹操)


More information about the samba-technical mailing list