chiark / gitweb /
priv/Makefile.am: Hack `libpriv' so that parallel builds work.
authorMark Wooding <mdw@distorted.org.uk>
Wed, 18 Jan 2012 22:54:56 +0000 (22:54 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Wed, 18 Jan 2012 22:58:37 +0000 (22:58 +0000)
The library `libpriv.a' is built here, but the `libpriv' variable is set
to `$(top_builddir)/priv/libpriv.a' instead, which doesn't match.  The
result is that a parallel build might try to link the helper before
building the library, find that the library (found via the variable)
doesn't exist, and fail.

Fix this by hardwiring the library name locally, since we know where
it's meant to be.  I'd override the variable value but Automake is
petty and prints warnings if I do that.

priv/Makefile.am

index 37650d1..e0a4676 100644 (file)
@@ -29,7 +29,7 @@ noinst_LIBRARIES       = libpriv.a
 libexec_PROGRAMS        = tripe-privhelper
 man_MANS                =
 
-LDADD                   = $(libpriv) $(libtripe) $(mLib_LIBS)
+LDADD                   = libpriv.a $(libtripe) $(mLib_LIBS)
 
 ###--------------------------------------------------------------------------
 ### Library.