diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2005-10-28 18:26:26 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:45:28 -0500 |
commit | 93fd08168fdc881fdef099991bd7a22448841dc4 (patch) | |
tree | 4e70a8b329f194c401fb5f412c0e478f15744fc3 /source4/libcli | |
parent | 17f8b87cb0731d716ac717b7796f50c252904b36 (diff) | |
download | samba-93fd08168fdc881fdef099991bd7a22448841dc4.tar.gz samba-93fd08168fdc881fdef099991bd7a22448841dc4.tar.bz2 samba-93fd08168fdc881fdef099991bd7a22448841dc4.zip |
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).
(This used to be commit 0b54405685674a2b19a28d77aae5b1136b5a4728)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/config.mk | 20 |
1 files changed, 16 insertions, 4 deletions
diff --git a/source4/libcli/config.mk b/source4/libcli/config.mk index c1747b5b17..a7a2862da5 100644 --- a/source4/libcli/config.mk +++ b/source4/libcli/config.mk @@ -30,7 +30,10 @@ ADD_OBJ_FILES = \ smb_composite/fsinfo.o REQUIRED_SUBSYSTEMS = LIBCLI_COMPOSITE -[SUBSYSTEM::LIBCLI_NBT] +[LIBRARY::LIBCLI_NBT] +MAJOR_VERSION = 0 +MINOR_VERSION = 0 +RELEASE_VERSION = 1 ADD_OBJ_FILES = \ nbt/nbtname.o \ nbt/nbtsocket.o \ @@ -51,13 +54,19 @@ ADD_OBJ_FILES = \ NOPROTO=YES REQUIRED_SUBSYSTEMS = LIBCLI_NBT -[SUBSYSTEM::LIBCLI_CLDAP] +[LIBRARY::LIBCLI_CLDAP] +MAJOR_VERSION = 0 +MINOR_VERSION = 0 +RELEASE_VERSION = 1 ADD_OBJ_FILES = \ cldap/cldap.o NOPROTO=YES REQUIRED_SUBSYSTEMS = LIBCLI_LDAP -[SUBSYSTEM::LIBCLI_WREPL] +[LIBRARY::LIBCLI_WREPL] +MAJOR_VERSION = 0 +MINOR_VERSION = 0 +RELEASE_VERSION = 1 ADD_OBJ_FILES = \ wrepl/winsrepl.o REQUIRED_SUBSYSTEMS = NDR_WINSREPL SOCKET LIBEVENTS @@ -71,7 +80,10 @@ ADD_OBJ_FILES = \ resolve/host.o REQUIRED_SUBSYSTEMS = LIBCLI_NBT -[SUBSYSTEM::LIBCLI] +[LIBRARY::LIBCLI] +MAJOR_VERSION = 0 +MINOR_VERSION = 0 +RELEASE_VERSION = 1 REQUIRED_SUBSYSTEMS = LIBCLI_RAW LIBCLI_UTILS LIBCLI_AUTH \ LIBCLI_SMB_COMPOSITE LIBCLI_NBT LIB_SECURITY LIBCLI_RESOLVE \ LIBCLI_DGRAM |