libepoxy: reinstate mesa egl cflags patch
PATCH 1/1 libepoxy: reinstate mesa egl cflags patch
This is still required when building libepoxy against mesa egl without x11 (GL).
Mesa needs a preprocessor define to avoid including X11 headers and since this is not forwarded into epoxy.pc for other libraries/applicatons that link against it it will fail.
--- .../0001-Forward-EGL-cflags-into-epoxy.pc.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/libepoxy/0001-Forward-EGL-cflags-into-epoxy.pc.patch
package/libepoxy/0001-Forward-EGL-cflags-into-epoxy.pc.patch new file +32 -0
@@ -0,0 +1,32 @@ +From 99b8373dbe8fb3bac835ebad90f91cfd213e4acb Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <[email protected]> +Date: Wed, 15 Mar 2017 10:02:54 -0300 +Subject: [PATCH] Forward EGL cflags into epoxy.pc + +When building mesa egl without x11 and gles2 the headers need a +MESA_EGL_NO_X11_HEADERS define to avoid including X11 headers. +Forward EGL CFLAGS into epoxy.pc to avoid build failures when linking +against libepoxy on this scenario. + +Signed-off-by: Gustavo Zacarias <[email protected]> +--- +Status: pull request https://github.com/anholt/libepoxy/pull/113 + + epoxy.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/epoxy.pc.in b/epoxy.pc.in +index 7828a77..8278b7d 100644 +--- a/epoxy.pc.in ++++ b/epoxy.pc.in +@@ -10,6 +10,6 @@ epoxy_has_wgl=@epoxy_has_wgl@ + Name: epoxy + Description: epoxy GL dispatch Library + Version: @PACKAGE_VERSION@ +-Cflags: -I${includedir} ++Cflags: -I${includedir} @EGL_CFLAGS@ + Libs: -L${libdir} -lepoxy + Libs.private: @DLOPEN_LIBS@ +-- +2.10.2 +
Signature · 1 line
2.10.2
PATCH 1/1 libepoxy: reinstate mesa egl cflags patch
Hi Gustavo,
Quoted 8 lines · Gustavo Zacarias
This is still required when building libepoxy against mesa egl without x11 (GL).
Mesa needs a preprocessor define to avoid including X11 headers and since this is not forwarded into epoxy.pc for other libraries/applicatons that link against it it will fail.
Signed-off-by Gustavo Zacarias <[email protected]>
I have checked that the compilation error is fixed by this patch.
Regards,
Vincent
Quoted 44 lines
--- .../0001-Forward-EGL-cflags-into-epoxy.pc.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/libepoxy/0001-Forward-EGL-cflags-into-epoxy.pc.patchpackage/libepoxy/0001-Forward-EGL-cflags-into-epoxy.pc.patch new file +32
-0@@ -0,0 +1,32 @@ +From 99b8373dbe8fb3bac835ebad90f91cfd213e4acb Mon Sep 17 00:00:00 2001 +From: Gustavo Zacarias <[email protected]> +Date: Wed, 15 Mar 2017 10:02:54 -0300 +Subject: [PATCH] Forward EGL cflags into epoxy.pc + +When building mesa egl without x11 and gles2 the headers need a +MESA_EGL_NO_X11_HEADERS define to avoid including X11 headers. +Forward EGL CFLAGS into epoxy.pc to avoid build failures when linking +against libepoxy on this scenario. + +Signed-off-by: Gustavo Zacarias <[email protected]> +--- +Status: pull request https://github.com/anholt/libepoxy/pull/113 + + epoxy.pc.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/epoxy.pc.in b/epoxy.pc.in +index 7828a77..8278b7d 100644 +--- a/epoxy.pc.in ++++ b/epoxy.pc.in +@@ -10,6 +10,6 @@ epoxy_has_wgl=@epoxy_has_wgl@ + Name: epoxy + Description: epoxy GL dispatch Library + Version: @PACKAGE_VERSION@ +-Cflags: -I${includedir} ++Cflags: -I${includedir} @EGL_CFLAGS@ + Libs: -L${libdir} -lepoxy + Libs.private: @DLOPEN_LIBS@ +-- +2.10.2 +
Thomas Petazzoni
AppliedPATCH 1/1 libepoxy: reinstate mesa egl cflags patch
In reply to Gustavo ZacariasHello,
Quoted 7 lines · Gustavo Zacarias
This is still required when building libepoxy against mesa egl without x11 (GL).
Mesa needs a preprocessor define to avoid including X11 headers and since this is not forwarded into epoxy.pc for other libraries/applicatons that link against it it will fail.
Quoted 5 lines
Signed-off-by Gustavo Zacarias <[email protected]>--- .../0001-Forward-EGL-cflags-into-epoxy.pc.patch | 32 ++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 package/libepoxy/0001-Forward-EGL-cflags-into-epoxy.pc.patch
Applied to master, thanks.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com