xref: /OK3568_Linux_fs/buildroot/package/pptp-linux/0002-fix-parallel-build.patch (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunFix parallel build issue
2*4882a593Smuzhiyun
3*4882a593SmuzhiyunThe config.h header file must be created before being used to build
4*4882a593Smuzhiyunsource files that include it, especially version.c. In order for this
5*4882a593Smuzhiyunto happen even in highly-parallel builds, we add a dependency of all
6*4882a593Smuzhiyunobject files on config.h, in order to ensure it gets generated before
7*4882a593Smuzhiyunmake attempts to build the object files.
8*4882a593Smuzhiyun
9*4882a593SmuzhiyunSigned-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10*4882a593Smuzhiyun
11*4882a593SmuzhiyunIndex: b/Makefile
12*4882a593Smuzhiyun===================================================================
13*4882a593Smuzhiyun--- a/Makefile
14*4882a593Smuzhiyun+++ b/Makefile
15*4882a593Smuzhiyun@@ -37,6 +37,8 @@
16*4882a593Smuzhiyun
17*4882a593Smuzhiyun all: config.h $(PPTP_BIN) pptpsetup.8
18*4882a593Smuzhiyun
19*4882a593Smuzhiyun+$(PPTP_OBJS): config.h
20*4882a593Smuzhiyun+
21*4882a593Smuzhiyun $(PPTP_BIN): $(PPTP_OBJS) $(PPTP_DEPS)
22*4882a593Smuzhiyun 	$(CC) -o $(PPTP_BIN) $(PPTP_OBJS) $(LDFLAGS) $(LIBS)
23*4882a593Smuzhiyun
24