From 2bbdcefb05942b804b0e4097c14619bd9789e89d Mon Sep 17 00:00:00 2001 Message-Id: <2bbdcefb05942b804b0e4097c14619bd9789e89d.1713951725.git.mdw@distorted.org.uk> From: Mark Wooding Date: Wed, 18 Jan 2012 22:54:56 +0000 Subject: [PATCH] priv/Makefile.am: Hack `libpriv' so that parallel builds work. Organization: Straylight/Edgeware From: Mark Wooding 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/priv/Makefile.am b/priv/Makefile.am index 37650d16..e0a46769 100644 --- a/priv/Makefile.am +++ b/priv/Makefile.am @@ -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. -- [mdw]