[Samba] How to build Samba4 using static linked libraries

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


> 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


This should build a statically linked smbtorture4:

cd source3
make bin/smbtorture4


More information about the samba mailing list