How to build Samba4 using static linked libraries

Stefan (metze) Metzmacher metze at samba.org
Mon May 7 13:47:49 MDT 2012


Hi,

> I am building the  torture/smbtorture for    samba-4.0.0alpha17.  After build,  I am running the test in another environment.
> I not only need to copy the binary smbtorture,  I also need to copy the shared libraries.   This is HUGE inconvenient for us.
> 
> Could somebody tell me how to build the binary using static linked libraries?

Take a look at

https://gitweb.samba.org/?p=samba.git;a=blob;f=source3/Makefile-smbtorture4;

This should build a statically linked smbtorture4:

cd source3
./configure.developer
make bin/smbtorture4

metze


More information about the samba-technical mailing list