Commit c44a2566 authored by Christophe Fergeau's avatar Christophe Fergeau Committed by Martin Szulecki

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.
parent f5f2f5e3
......@@ -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 \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment