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

Jon Knight J.P.Knight at lboro.ac.uk
Wed Jul 24 09:12:11 MDT 2013


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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Allow-ldflags-to-be-used-in-SAMBA_MODULE-calls-in-ws.patch
Type: text/x-diff
Size: 1302 bytes
Desc: 
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20130724/f5e86134/attachment.patch>


More information about the samba-technical mailing list