From 93fd08168fdc881fdef099991bd7a22448841dc4 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Fri, 28 Oct 2005 18:26:26 +0000 Subject: 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) --- source4/gtk/common/gtk-smb.h | 4 ---- 1 file changed, 4 deletions(-) (limited to 'source4/gtk/common') diff --git a/source4/gtk/common/gtk-smb.h b/source4/gtk/common/gtk-smb.h index 378e909f5d..98916d19ec 100644 --- a/source4/gtk/common/gtk-smb.h +++ b/source4/gtk/common/gtk-smb.h @@ -23,8 +23,6 @@ #define __GTK_SMB_H__ -#ifdef HAVE_GTK - #define GTK_DISABLE_DEPRECATED #include @@ -59,8 +57,6 @@ struct _GtkRpcBindingDialogClass #define GTK_RPC_BINDING_DIALOG_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_rpc_binding_dialog_class_get_type (), GtkRpcBindingDialogClass) #define IS_GTK_RPC_BINDING_DIALOG(obj) GTK_CHECK_TYPE (obj, gtk_rpc_binding_dialog_get_type ()) -#endif - /* subsystem prototypes */ GtkWidget *create_gtk_samba_about_dialog (const char *appname); void gtk_show_ntstatus(GtkWidget *win, const char *, NTSTATUS status); -- cgit