Fix install failure in google backend.
authorMatthew Barnes <mbarnes@redhat.com>
Tue, 26 Jun 2012 14:36:34 +0000 (10:36 -0400)
committerMatthew Barnes <mbarnes@redhat.com>
Tue, 26 Jun 2012 14:41:27 +0000 (10:41 -0400)
Instead of linking to libebook-google-utils.la, just add its source
files directly to the libebookbackendgoogle module.   So the code is
duplicated in the backend module and the noinst unit test library.

This was causing libtool to barf on bogus undefined reference errors
during install.  Still don't really understand what libtool's problem
was -- maybe it didn't like the noinst library?  Who knows.

addressbook/backends/google/Makefile.am

index d22f19e..0138234 100644 (file)
@@ -28,10 +28,11 @@ libebookbackendgoogle_la_SOURCES = \
        e-book-backend-google-factory.c \
        e-book-backend-google.c \
        e-book-backend-google.h \
+       e-book-google-utils.c \
+       e-book-google-utils.h \
        $(GOA_SOURCES)
 
 libebookbackendgoogle_la_LIBADD = \
-       libebook-google-utils.la \
        $(top_builddir)/addressbook/libedata-book/libedata-book-1.2.la \
        $(top_builddir)/addressbook/libebook/libebook-1.2.la \
        $(top_builddir)/libedataserver/libedataserver-1.2.la \
@@ -76,7 +77,6 @@ libebook_google_utils_la_CPPFLAGS = \
        $(NULL)
 
 libebook_google_utils_la_LIBADD = \
-       $(AM_LIBADD) \
        $(top_builddir)/addressbook/libebook/libebook-1.2.la \
        $(top_builddir)/libedataserver/libedataserver-1.2.la \
        $(top_builddir)/libebackend/libebackend-1.2.la \