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