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 37650d161782f5025c6e73fda3fc1da039633aef..e0a467695545a91d198df1713917b3774c8a5640 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.