winexe will be statically linked against samba libraries.
authorAndrzej Hajda <andrzej.hajda@wp.pl>
Fri, 2 Sep 2011 21:26:24 +0000 (23:26 +0200)
committerAndrzej Hajda <andrzej.hajda@wp.pl>
Fri, 2 Sep 2011 21:26:24 +0000 (23:26 +0200)
source/wscript

index 046e884ffeb4396124ad06ec99df3a3b96dd5c16..52358f98d0dd2c0d13095e66bb776c4b94492401 100644 (file)
@@ -20,8 +20,11 @@ def configure(ctx):
     ctx.find_program([ a + '-' + p + '-gcc' for a in ['i386', 'i586'] for p in platform], var='CC_WIN32')
     ctx.find_program([ a + '-' + p + '-gcc' for a in ['x86_64', 'amd64'] for p in platform], var='CC_WIN64')
     ctx.load('compiler_c')
+    # Add winexe to samba build system
     os.system('cd ' + samba + ' && grep -q "bld.RECURSE(\'../source\')" wscript_build || sed -i "s#bld.RECURSE(\'source3\')#bld.RECURSE(\'source3\')\\nbld.RECURSE(\'../source\')#" wscript_build')
-    os.system('cd ' + samba + ' && ./buildtools/bin/waf configure --bundled-libraries=ALL')
+    # Patch ldb-samba to not depend on pyldb-util
+    os.system('cd ' + samba + ' && sed -i "s/ pyldb-util / /" lib/ldb-samba/wscript_build')
+    os.system('cd ' + samba + ' && ./buildtools/bin/waf configure --bundled-libraries=ALL --nonshared-binary=winexe -C')
 
 def build(bld):
     if bld.env._SAMBA_BUILD_ == 4: