Add documented libraries to LDFLAGS in the documentation Makefile.am
authorPhilip Withnall <philip.withnall@collabora.co.uk>
Sun, 12 Dec 2010 17:06:38 +0000 (17:06 +0000)
committerPhilip Withnall <philip@tecnocode.co.uk>
Sun, 12 Dec 2010 17:12:45 +0000 (17:12 +0000)
gtkdoc-scangobj expects to have the libraries it's linking its scanner program
to present in LDFLAGS. gtk-doc.make normally does this automatically for
normal gtk-doc-enabled projects, but we need to do it manually.

docs/Makefile.am

index feea644..0ad366f 100644 (file)
@@ -41,6 +41,17 @@ valadoc_flags = \
        --package-version $(PACKAGE_VERSION) \
        $(NULL)
 
+# We need to modify LDFLAGS so that gtkdoc-scangobj can find the symbols when
+# it comes to link its scanning program. This is what gtk-doc.make does for
+# normal gtk-doc-enabled projects.
+# FIXME: An enhancement request has been filed against valadoc for it to do this
+# automatically for us: https://bugzilla.gnome.org/show_bug.cgi?id=637090
+LDFLAGS = \
+       $(abs_top_builddir)/folks/libfolks.la \
+       $(abs_top_builddir)/backends/telepathy/lib/libfolks-telepathy.la \
+       @LDFLAGS@ \
+       $(NULL)
+
 # folks documentation
 folks_doc_files = $(top_srcdir)/folks/*.vala
 folks_doc_deps = \