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