[Samba] how to build smbtorture using static linked libraries
Andrew Bartlett
abartlet at samba.org
Mon Oct 26 07:05:37 UTC 2015
On Thu, 2015-10-22 at 05:21 +0000, Shuo Dong wrote:
> Hello all:
>
> I am trying to build smbtorture using static linked libraries.
> The samba source code I have is samba-4.1.13
>
> for configure, I did:
>
> waf configure --builtin-libraries=ALL
>
> for build, I did:
> waf build --targets=smbtorture (so that it only build target
> smbtorture)
>
> But, the waf build fails immediately.
>
>
> Then, I tried to only link with lib talloc and tevent statically, so
> I did:
>
> waf configure --builtin-libraries=talloc,tevent
>
> and then do:
> waf build --targets=smbtorture
>
> But then build fails in the link step with an ld error of undefined
> reference to some function.
>
> How can I resolve this issue, and build smbtorture with static linked
> libraries?
>
Use Samba 4.3 and see the recipe in script/autobuild.py:
--bundled-libraries=talloc,tdb,pytdb,ldb,pyldb,tevent,pytevent --with
-static-modules=ALL --nonshared-binary=smbtorture,smbd/smbd
Andrew Barteltt
--
Andrew Bartlett http://samba.org/~abartlet/
Authentication Developer, Samba Team http://samba.org
Samba Developer, Catalyst IT http://catalyst.net.nz/services/samba
More information about the samba
mailing list