04a797743fae9074d4a778ab2b4ba43eef0d3543
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / pptp-linux / 0002-fix-parallel-build.patch
1 Fix parallel build issue
2
3 The config.h header file must be created before being used to build
4 source files that include it, especially version.c. In order for this
5 to happen even in highly-parallel builds, we add a dependency of all
6 object files on config.h, in order to ensure it gets generated before
7 make attempts to build the object files.
8
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
11 Index: 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