0006-Prevent-ffmpeg-configure-compile-race-condition.patch 970 B

12345678910111213141516171819202122232425262728293031323334353637
  1. From f570b9985ff2d57d21c1e64ed08c43b6d89fd0b1 Mon Sep 17 00:00:00 2001
  2. From: Paul Barker <pbarker@toganlabs.com>
  3. Date: Thu, 7 Sep 2017 20:02:15 +0000
  4. Subject: [PATCH] Prevent ffmpeg configure/compile race condition
  5. Additional dependency information is needed in Makefile.ffmpeg to ensure that
  6. the configure stage is finished before the compile stage starts.
  7. Signed-off-by: Paul Barker <pbarker@toganlabs.com>
  8. Upstream-Status: Pending
  9. ---
  10. Makefile.ffmpeg | 4 ++--
  11. 1 file changed, 2 insertions(+), 2 deletions(-)
  12. Index: git/Makefile.ffmpeg
  13. ===================================================================
  14. --- git.orig/Makefile.ffmpeg
  15. +++ git/Makefile.ffmpeg
  16. @@ -5,7 +5,7 @@ FFMPEG_EXTRA_CFLAGS?=-mfpu=vfp -mfloat-a
  17. WORK=$(PWD)
  18. .PHONY : all
  19. -all: configure compile
  20. +all: compile
  21. .PHONY : copy
  22. copy:
  23. @@ -13,7 +13,7 @@ copy:
  24. $(HOST)-strip *.so*
  25. .PHONY : compile
  26. -compile:
  27. +compile: configure
  28. +$(MAKE) -j$(shell nproc) -C ffmpeg
  29. .PHONY : configure