svn commit: samba r11377 - in branches/SAMBA_4_0/source: . auth auth/gensec build/smb_build gtk gtk/common heimdal_build lib lib/samba3 lib/socket_wrapper lib/talloc libcli libnet librpc nsswitch

jelmer at samba.org jelmer at samba.org
Fri Oct 28 18:26:28 GMT 2005


Author: jelmer
Date: 2005-10-28 18:26:26 +0000 (Fri, 28 Oct 2005)
New Revision: 11377

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11377

Log:
Add support for building LIBRARY elements as shared libraries:
 - Adds -rpath bin/ so you don't have to install Samba in order to use compiled binaries. 
 - Writes out pkg-config files when building shared libs
 - Supports automatic fallback to MERGEDOBJ (which is the default) or 
   OBJ_LIST (if ld -r is not supported)

Building with shared libs reduces the size of the Samba binaries from 
197 Mb to 60 Mb (including libraries) on my system (GCC4, with debugging).

To build with shared libraries support enabled, run:

LIBRARY_OUTPUT_TYPE=SHARED_LIBRARY ./config.status

init functions don't get called correctly yet when using shared libs, so 
you won't be able to actually run anything with success :-)

Once init functions are done, I'll look at support for loading shared 
modules once again. 

Based on a patch by Peter Novodvorsky (nidd on IRC).


Modified:
   branches/SAMBA_4_0/source/auth/config.mk
   branches/SAMBA_4_0/source/auth/gensec/config.mk
   branches/SAMBA_4_0/source/build/smb_build/config_mk.pm
   branches/SAMBA_4_0/source/build/smb_build/env.pm
   branches/SAMBA_4_0/source/build/smb_build/input.pm
   branches/SAMBA_4_0/source/build/smb_build/main.pl
   branches/SAMBA_4_0/source/build/smb_build/makefile.pm
   branches/SAMBA_4_0/source/build/smb_build/output.pm
   branches/SAMBA_4_0/source/gtk/common/gtk-smb.h
   branches/SAMBA_4_0/source/gtk/config.mk
   branches/SAMBA_4_0/source/heimdal_build/config.mk
   branches/SAMBA_4_0/source/lib/basic.mk
   branches/SAMBA_4_0/source/lib/samba3/config.mk
   branches/SAMBA_4_0/source/lib/socket_wrapper/config.mk
   branches/SAMBA_4_0/source/lib/talloc/config.mk
   branches/SAMBA_4_0/source/libcli/config.mk
   branches/SAMBA_4_0/source/libnet/config.mk
   branches/SAMBA_4_0/source/librpc/config.mk
   branches/SAMBA_4_0/source/main.mk
   branches/SAMBA_4_0/source/nsswitch/config.mk


Changeset:
Sorry, the patch is too large (618 lines) to include; please use WebSVN to see it!
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=11377


More information about the samba-cvs mailing list