[gvfs] Convert libdaemon to a private shared library



commit db599e514ff179f7ec4f653f1d3941b50b720ea8
Author: Ross Lagerwall <rosslagerwall gmail com>
Date:   Mon Oct 28 19:49:15 2013 +0200

    Convert libdaemon to a private shared library
    
    Convert libdaemon to be a private shared library called libgvfsdaemon,
    much like libgvfscommon.  It has the benefit of reducing the binary
    size of each daemon by between 100 and 200KB and reduces the memory
    footprint if using several backends at the same time.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=561187

 daemon/Makefile.am |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)
---
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 6a1b837..8425882 100644
--- a/daemon/Makefile.am
+++ b/daemon/Makefile.am
@@ -18,10 +18,10 @@ INCLUDES =                                  \
        -DMOUNTABLE_DIR=\"$(mountdir)\"         \
        -DGVFS_LOCALEDIR=\""$(localedir)"\"
 
-noinst_LTLIBRARIES=libdaemon.la
+pkglib_LTLIBRARIES=libgvfsdaemon.la
 
 libraries =                                            \
-       libdaemon.la                                    \
+       libgvfsdaemon.la                                        \
        $(top_builddir)/common/libgvfscommon.la         \
        $(GLIB_LIBS) $(KEYRING_LIBS)
 
@@ -149,7 +149,7 @@ noinst_PROGRAMS =                           \
        gvfsd-test                      \
        $(NULL)
 
-libdaemon_la_SOURCES = \
+libgvfsdaemon_la_SOURCES = \
        gvfstypes.h \
        gvfsdaemon.c gvfsdaemon.h \
        gvfsbackend.c gvfsbackend.h \
@@ -200,6 +200,9 @@ libdaemon_la_SOURCES = \
        gvfskeyring.h gvfskeyring.c \
         $(NULL)
 
+# needed by cygwin (see bug #564003)
+libgvfsdaemon_la_LDFLAGS = -no-undefined -avoid-version
+
 gvfsd_SOURCES = \
        mount.c mount.h \
        main.c


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]