0001-qtbase-Fix-build-error-when-using-EGL.patch 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. From c11299086b7718332e2b4fbc37ce6f6ff427c5ba Mon Sep 17 00:00:00 2001
  2. From: Yuqing Zhu <carol.zhu@nxp.com>
  3. Date: Mon, 27 Mar 2017 15:33:35 +0800
  4. Subject: [PATCH] qtbase: Fix build error when using EGL
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=utf-8
  7. Content-Transfer-Encoding: 8bit
  8. A build error was occurring due to missing EGL configuration.
  9. Fixed by adding the necessary ties to the EGL pkg-config.
  10. Task-number: QTBUG-61712
  11. Change-Id: I87190ea39392b4604c563cf9d89edb85068d85fc
  12. Upstream-Status: Pending
  13. Signed-off-by: Gaël PORTAY <gael.portay@savoirfairelinux.com>
  14. ---
  15. mkspecs/features/egl.prf | 6 ++++++
  16. 1 file changed, 6 insertions(+)
  17. diff --git a/mkspecs/features/egl.prf b/mkspecs/features/egl.prf
  18. index 9fa0c9e219..85d5852ba6 100644
  19. --- a/mkspecs/features/egl.prf
  20. +++ b/mkspecs/features/egl.prf
  21. @@ -1,3 +1,9 @@
  22. +# egl headers need a definition
  23. +PKG_CONFIG = $$pkgConfigExecutable()
  24. +PKGCONFIG_CFLAGS = $$system($$PKG_CONFIG --cflags egl)
  25. +PKGCONFIG_CFLAGS = $$find(PKGCONFIG_CFLAGS, ^-D.*)
  26. +QMAKE_CFLAGS_EGL = $$PKGCONFIG_CFLAGS
  27. +
  28. INCLUDEPATH += $$QMAKE_INCDIR_EGL
  29. LIBS_PRIVATE += $$QMAKE_LIBS_EGL
  30. QMAKE_CFLAGS += $$QMAKE_CFLAGS_EGL
  31. --
  32. 2.16.1