0002-fix-parallel-build.patch 716 B

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