summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoss Lagerwall <rosslagerwall@gmail.com>2013-10-28 19:49:15 +0200
committerRoss Lagerwall <rosslagerwall@gmail.com>2013-12-12 18:38:16 +0200
commitdb599e514ff179f7ec4f653f1d3941b50b720ea8 (patch)
tree513457e3f10c0928ef515cf116fb0e607e340bf3
parent20f1c7197173816490a6196c776793d77791e1f1 (diff)
downloadgvfs-db599e514ff179f7ec4f653f1d3941b50b720ea8.tar.gz
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
-rw-r--r--daemon/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/daemon/Makefile.am b/daemon/Makefile.am
index 6a1b8378..8425882c 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