[Samba] compile samba 3.0.23c statically

Christoph Fuchs cfuchs at spamcan.fuchs.cc
Mon Oct 23 15:31:19 GMT 2006


Hello list,

I'm trying to compile the current stable version of samba statically.
The goal is that smbd / etc. don't need any libraries.

My first attempt was to run

./configure

and afterwards to start the compile process with

make LDFLAGS=-static

but this failed with the message

Linking bin/smbd
/usr/lib/gcc-lib/i586-suse-linux/3.3.5/../../../../i586-suse-linux/bin/ld:
cannot find -lcap
collect2: ld returned 1 exit status
make: *** [bin/smbd] Error 1

The OS is SuSE Linux 9.3, I installed the libcap-1.92-483-package.

Samba compiled smoothly without the "LDFLAGS=-static" parameter, but was
afterwards - of course - dynamically linked.

Is there a possibility to link it statically?

Thanks a lot for your help,

Christoph



More information about the samba mailing list