1It fails to produce common.o when system load is high:
2
3| In file included from common.c:57:
4| ../include/defs.h:49:10: fatal error: y.tab.h: No such file or directory
5|    49 | #include "y.tab.h"
6|       |          ^~~~~~~~~
7| compilation terminated.
8
9Make $(COMMONOBJS) which include common.o to depends on related header files
10and y.tab.h to fix the parallel build failure.
11
12Upstream-Status: Inappropriate [no upstream]
13
14Signed-off-by: Kai Kang <kai.kang@windriver.com>
15---
16 src/Makefile.real | 2 +-
17 1 file changed, 1 insertion(+), 1 deletion(-)
18
19diff --git a/src/Makefile.real b/src/Makefile.real
20index e0f0dfc..53d4944 100644
21--- a/src/Makefile.real
22+++ b/src/Makefile.real
23@@ -41,7 +41,7 @@ $(SERVER_BIN): $(SERVEROBJS) $(COMMONOBJS) $(MISSINGOBJS)
24 $(CLIENT_BIN): $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS)
25 	$(CC) -o $@ $(CLIENTOBJS) $(COMMONOBJS) $(MISSINGOBJS) $(LIBS) $(LDFLAGS)
26
27-$(CLIENTOBJS) $(SERVEROBJS): $(HFILES) y.tab.h
28+$(COMMONOBJS) $(CLIENTOBJS) $(SERVEROBJS): $(HFILES) y.tab.h
29
30 y.tab.h: gram.c
31
32