From c44a2566aec583eed33af9b1a3b15a0c564725e4 Mon Sep 17 00:00:00 2001 From: Christophe Fergeau Date: Fri, 28 Mar 2014 21:08:45 +0100 Subject: build-sys: Fix parallel build On my machine, parallel builds fail with: make[2]: Entering directory `/home/teuf/hack/libplist/src' CCLD libplist.la make[2]: *** No rule to make target `../src/libplist.la', needed by `libplist++.la'. Stop. If $(top_builddir)/src/libplist.la does not exist yet when trying to link libplist++.la, automake/make will not realize the $(top_builddir)/src/libplist.la dependency is the same as the libplist.la target, and will thus be unable to generate $(top_builddir)/src/libplist.la. Using the libplist.la instead fixes this issue. I've checked that srcdir!=builddir and make distcheck still pass after this change. --- src/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Makefile.am b/src/Makefile.am index eec2c24..cbb9b87 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -15,7 +15,7 @@ libplist_la_SOURCES = base64.c base64.h \ plist.c plist.h \ common.h -libplist___la_LIBADD = $(top_builddir)/src/libplist.la +libplist___la_LIBADD = libplist.la libplist___la_LDFLAGS = $(AM_LDFLAGS) -version-info $(LIBPLIST_SO_VERSION) -no-undefined libplist___la_SOURCES = Node.cpp \ Structure.cpp \ -- cgit v1.1-32-gdbae