From 1c6db90677a8c0d185a408a3b7fa18cf0f47df0a Mon Sep 17 00:00:00 2001 From: Tim Creech Date: Mon, 2 Nov 2015 08:12:32 -0500 Subject: [PATCH] Make libuafs safe for parallel make In src/libuafs, "make" with a large number of jobs (e.g., "make -j16") can fail because some of the LT_objs depend on make_h_tree having been called already. Make "h" (the libuafs header subdirectory) a dependency of all of LT_objs. Change-Id: Ie005dbb1f1b0a794c703147062615808a45956dc Reviewed-on: http://gerrit.openafs.org/12079 Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- src/libuafs/Makefile.common.in | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/libuafs/Makefile.common.in b/src/libuafs/Makefile.common.in index eff53506e..1f2c61946 100644 --- a/src/libuafs/Makefile.common.in +++ b/src/libuafs/Makefile.common.in @@ -192,10 +192,12 @@ ${TOP_LIBDIR}/libuafs.a: libuafs.a ${TOP_LIBDIR}/libuafs_pic.a: libuafs_pic.la ${INSTALL_DATA} .libs/libuafs_pic.a $@ -libuafs.la: h $(LT_objs) +$(LT_objs): h + +libuafs.la: $(LT_objs) $(LT_LDLIB_shlib) $(LT_objs) -libuafs.a: h $(LT_objs) +libuafs.a: $(LT_objs) $(LT_LDLIB_static) $(LT_objs) libuafs_pic.la: libuafs.a $(LT_objs) -- 2.39.5