[2/2] pptp-linux: fix parallel build

Message ID 1359924801-30806-2-git-send-email-thomas.petazzoni@free-electrons.com
State Accepted
Commit a5b8081b89ebd5f9ff224440376e811c43696866
Headers show

Commit Message

Thomas Petazzoni Feb. 3, 2013, 8:53 p.m.
Add a patch to fix a parallel build issue caused by a header file
being generated too late.



Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
 .../pptp-linux-004-fix-parallel-build.patch        |   23 ++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 package/pptp-linux/pptp-linux-004-fix-parallel-build.patch


diff --git a/package/pptp-linux/pptp-linux-004-fix-parallel-build.patch b/package/pptp-linux/pptp-linux-004-fix-parallel-build.patch
new file mode 100644
index 0000000..04a7977
--- /dev/null
+++ b/package/pptp-linux/pptp-linux-004-fix-parallel-build.patch
@@ -0,0 +1,23 @@ 
+Fix parallel build issue
+The config.h header file must be created before being used to build
+source files that include it, especially version.c. In order for this
+to happen even in highly-parallel builds, we add a dependency of all
+object files on config.h, in order to ensure it gets generated before
+make attempts to build the object files.
+Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
+Index: b/Makefile
+--- a/Makefile
++++ b/Makefile
+@@ -37,6 +37,8 @@
+ all: config.h $(PPTP_BIN) pptpsetup.8
++$(PPTP_OBJS): config.h