summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christophe Fergeau2014-03-28 21:08:45 +0100
committerGravatar Martin Szulecki2014-03-28 21:26:14 +0100
commitc44a2566aec583eed33af9b1a3b15a0c564725e4 (patch)
tree3c9b3ae4c7846dc12f032f94a996bd6ca6861ec8
parentf5f2f5e372b4f961ee949ff53f341ffea9af5b55 (diff)
downloadlibplist-c44a2566aec583eed33af9b1a3b15a0c564725e4.tar.gz
libplist-c44a2566aec583eed33af9b1a3b15a0c564725e4.tar.bz2
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.
-rw-r--r--src/Makefile.am2
1 files changed, 1 insertions, 1 deletions
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 \