gam-server-0.1.10-noinst-lib.patch 2.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. From e68aacc084d65fd0780991265444061b24422bd0 Mon Sep 17 00:00:00 2001
  2. From: Remi Cardona <remi@gentoo.org>
  3. Date: Mon, 20 Oct 2008 19:17:36 +0200
  4. Subject: [PATCH] make libgamin_shared a "noinst" libtool helper lib
  5. ---
  6. lib/Makefile.am | 4 ++--
  7. libgamin/Makefile.am | 15 ++-------------
  8. server/Makefile.am | 2 +-
  9. 3 files changed, 5 insertions(+), 16 deletions(-)
  10. diff --git a/lib/Makefile.am b/lib/Makefile.am
  11. index 3e2289c..af2152a 100644
  12. --- a/lib/Makefile.am
  13. +++ b/lib/Makefile.am
  14. @@ -7,9 +7,9 @@ if GAMIN_DEBUG
  15. INCLUDES += -DGAM_DEBUG_ENABLED
  16. endif
  17. -lib_LIBRARIES = libgamin_shared.a
  18. +noinst_LTLIBRARIES = libgamin_shared.la
  19. -libgamin_shared_a_SOURCES = \
  20. +libgamin_shared_la_SOURCES = \
  21. gam_event.c \
  22. gam_event.h \
  23. gam_error.c \
  24. diff --git a/libgamin/Makefile.am b/libgamin/Makefile.am
  25. index 35aa740..14fc06b 100644
  26. --- a/libgamin/Makefile.am
  27. +++ b/libgamin/Makefile.am
  28. @@ -25,19 +25,9 @@ libgamin_1_la_SOURCES = \
  29. gam_data.h \
  30. gam_fork.c \
  31. gam_fork.h \
  32. - gam_protocol.h \
  33. - gam_error.c \
  34. - gam_event.c
  35. + gam_protocol.h
  36. -gam_error.c: $(top_srcdir)/lib/gam_error.c
  37. - @(cp $(top_srcdir)/lib/gam_error.c gam_error.c)
  38. -
  39. -gam_event.c: $(top_srcdir)/lib/gam_event.c
  40. - @(cp $(top_srcdir)/lib/gam_event.c gam_event.c)
  41. -
  42. -CLEANFILES=gam_error.c gam_event.c
  43. -
  44. -libgamin_1_la_LIBADD =
  45. +libgamin_1_la_LIBADD = $(top_builddir)/lib/libgamin_shared.la
  46. libgamin_1_la_LDFLAGS = -Wl,--version-script=$(srcdir)/gamin_sym.version \
  47. -version-info @GAMIN_VERSION_INFO@ @THREAD_LIBS@
  48. @@ -54,6 +44,5 @@ noinst_PROGRAMS= gamin
  49. gamin_SOURCES = gamin.c
  50. gamin_LDFLAGS =
  51. -gamin_DEPENDENCIES = $(DEPS) libgamin-1.la
  52. gamin_LDADD= $(LDADDS) libgamin-1.la
  53. diff --git a/server/Makefile.am b/server/Makefile.am
  54. index 37aed8b..6aa5e02 100644
  55. --- a/server/Makefile.am
  56. +++ b/server/Makefile.am
  57. @@ -80,7 +80,7 @@ endif
  58. gam_server_LDFLAGS =
  59. gam_server_DEPENDENCIES = $(DEPS)
  60. -gam_server_LDADD= $(top_builddir)/lib/libgamin_shared.a $(LDADDS) $(DAEMON_LIBS)
  61. +gam_server_LDADD= $(top_builddir)/lib/libgamin_shared.la $(LDADDS) $(DAEMON_LIBS)
  62. if ENABLE_HURD_MACH_NOTIFY
  63. gam_server_LDADD += -lports -lthreads
  64. --
  65. 1.6.0.2