build: Ensure that libatspi depends on libdbind
authorEmmanuele Bassi <ebassi@gnome.org>
Wed, 24 May 2017 11:20:00 +0000 (12:20 +0100)
committerEmmanuele Bassi <ebassi@gnome.org>
Wed, 24 May 2017 13:18:55 +0000 (14:18 +0100)
With heavy parallelisation we may end up in a case where libatspi is
built before libdbind.

atspi/Makefile.am

index ab6c448..5267f47 100644 (file)
@@ -2,19 +2,23 @@ lib_LTLIBRARIES = libatspi.la
 
 libatspi_la_LDFLAGS = @LDFLAGS@ @LT_VERSION_INFO@ @LIBTOOL_EXPORT_OPTIONS@ -no-undefined
 
-libatspi_la_CFLAGS = $(DBUS_CFLAGS) \
-                   $(DBIND_CFLAGS)     \
-                   $(GLIB_CFLAGS)     \
-                   -I$(top_srcdir)/registryd \
-                   -I$(top_builddir)/registryd \
-                    -I$(top_builddir) \
-                    -I$(top_srcdir)
-
-libatspi_la_LIBADD = $(DBUS_LIBS) \
+libatspi_la_CFLAGS = \
+       $(DBUS_CFLAGS) \
+       $(DBIND_CFLAGS) \
+       $(GLIB_CFLAGS) \
+       -I$(top_srcdir)/registryd \
+       -I$(top_builddir)/registryd \
+       -I$(top_builddir) \
+       -I$(top_srcdir)
+
+libatspi_la_LIBADD = \
+       $(DBUS_LIBS) \
        $(GOBJ_LIBS) \
        $(X11_LIBS) \
        $(top_builddir)/dbind/libdbind.la
 
+libatspi_la_DEPENDENCIES = $(top_builddir)/dbind/libdbind.la
+
 libatspiincludedir = $(includedir)/at-spi-2.0/atspi
 
 libatspiinclude_HEADERS = \