Hello folks,

Please consider the attached patch, which applies to latest master of
"core/efl.git" and avoids linking with libGL if we do not need it
(wayland-egl, no "gl" engine).

-- 
Regards,



*Manuel BACHMANN Tizen Project VANNES-FR*
From bb627562ae19cdcd5d733e139d7ab0da6c4bc03e Mon Sep 17 00:00:00 2001
From: Manuel Bachmann <[email protected]>
Date: Tue, 19 Aug 2014 04:34:20 -0700
Subject: [PATCH] autotools: do not link with libGL if we have
 "wayland-egl" without "gl"

If we have "wayland-egl" and choose to use another engine than "gl"
("glesv2" with "--with-opengl=es" e.g.), then we are in a case where
linking with libGL is not necessary. This is especially useful on a
pure Wayland system.

Signed-off-by: Manuel Bachmann <[email protected]>
---
 m4/evas_check_engine.m4 | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/m4/evas_check_engine.m4 b/m4/evas_check_engine.m4
index 6c8ed81..fd29393 100644
--- a/m4/evas_check_engine.m4
+++ b/m4/evas_check_engine.m4
@@ -568,6 +568,9 @@ PKG_CHECK_EXISTS([egl >= 7.10 ${gl_library} wayland-client >= 1.3.0 wayland-egl
    [have_dep="no"])
 
 if test "x${have_dep}" = "xyes" ; then
+   if test "${gl_library}" != "gl" ; then
+      have_egl="yes"
+   fi
    if test "x$3" = "xstatic" ; then
       requirements_pc_evas="${requirement} ${requirements_pc_evas}"
       requirements_pc_deps_evas="${requirement} ${requirements_pc_deps_evas}"
-- 
1.8.1.3

------------------------------------------------------------------------------
_______________________________________________
enlightenment-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/enlightenment-devel

Reply via email to