r11377: Add support for building LIBRARY elements as shared libraries:
authorJelmer Vernooij <jelmer@samba.org>
Fri, 28 Oct 2005 18:26:26 +0000 (18:26 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:45:28 +0000 (13:45 -0500)
commit0b54405685674a2b19a28d77aae5b1136b5a4728
tree75e2f13e9b65543ddda12bff51c0601a9e91c3aa
parent3353e906adb3b3116551026e3ae18fd4d7ae1764
r11377: 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).
20 files changed:
source/auth/config.mk
source/auth/gensec/config.mk
source/build/smb_build/config_mk.pm
source/build/smb_build/env.pm
source/build/smb_build/input.pm
source/build/smb_build/main.pl
source/build/smb_build/makefile.pm
source/build/smb_build/output.pm
source/gtk/common/gtk-smb.h
source/gtk/config.mk
source/heimdal_build/config.mk
source/lib/basic.mk
source/lib/samba3/config.mk
source/lib/socket_wrapper/config.mk
source/lib/talloc/config.mk
source/libcli/config.mk
source/libnet/config.mk
source/librpc/config.mk
source/main.mk
source/nsswitch/config.mk