0004-Fix-linking-with-libpthread.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. From 5dd4bb67cfce812fd7686e43616e2069f354a7df Mon Sep 17 00:00:00 2001
  2. From: Allan Sandfeld Jensen <allan.jensen@theqtcompany.com>
  3. Date: Mon, 22 Feb 2016 10:57:32 +0100
  4. Subject: [PATCH] Fix linking with libpthread
  5. WebKit use libpthread directly but is depending on other qt modules
  6. causing it to be linked against, which might break unless -lpthread
  7. is last. Instead just add it explicitly after the static libraries.
  8. Upstream-Status: Backport from 5.7 branch
  9. Change-Id: I2b95cff2c96373f8dce6f95052c4fccbe1982b33
  10. Reviewed-by: Simon Hausmann <simon.hausmann@theqtcompany.com>
  11. Signed-off-by: Jonathan Liu <net147@gmail.com>
  12. Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
  13. ---
  14. Tools/qmake/mkspecs/features/default_post.prf | 1 +
  15. 1 file changed, 1 insertion(+)
  16. diff --git a/Tools/qmake/mkspecs/features/default_post.prf b/Tools/qmake/mkspecs/features/default_post.prf
  17. index 67276b7..39bb3f7 100644
  18. --- a/Tools/qmake/mkspecs/features/default_post.prf
  19. +++ b/Tools/qmake/mkspecs/features/default_post.prf
  20. @@ -201,6 +201,7 @@ needToLink() {
  21. linkAgainstLibrary($$library, $$eval(WEBKIT.$${library_identifier}.root_source_dir))
  22. LIBS += $$eval(WEBKIT.$${library_identifier}.dependent_libs)
  23. }
  24. + posix:!darwin: LIBS += -lpthread
  25. }
  26. creating_module {
  27. --
  28. 2.7.1