[Libreoffice-commits] core.git: external/epoxy

Christian Lohmaier lohmaier+LibreOffice at googlemail.com
Fri Sep 15 20:48:26 UTC 2017


 external/epoxy/UnpackedTarball_epoxy.mk        |    1 
 external/epoxy/epoxy.noglx_means_noglx.patch.1 |   28 +++++++++++++++++++++++++
 2 files changed, 29 insertions(+)

New commits:
commit 17d48dfe3ae7711c9ece878f448454dc49a8174d
Author: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
Date:   Fri Sep 15 17:49:41 2017 +0200

    epoxy: don't rely on compiler to optimize-out unsupported glx stuff
    
    …as building with debug on Android for example fails when linking due to
    unsatisfied symbol glXGetProcAddressARB
    
    Change-Id: Ibea56d182fcabff182b1622599950e3e7ebf3aaa
    Reviewed-on: https://gerrit.libreoffice.org/42335
    Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice at googlemail.com>
    Tested-by: Jenkins <ci at libreoffice.org>

diff --git a/external/epoxy/UnpackedTarball_epoxy.mk b/external/epoxy/UnpackedTarball_epoxy.mk
index ea088058429e..d72a9b9feab6 100644
--- a/external/epoxy/UnpackedTarball_epoxy.mk
+++ b/external/epoxy/UnpackedTarball_epoxy.mk
@@ -17,6 +17,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,epoxy, \
     external/epoxy/epoxy.windows.api.patch \
     external/epoxy/epoxy.noegl.by.default.patch \
     external/epoxy/clang-cl.patch \
+    external/epoxy/epoxy.noglx_means_noglx.patch.1 \
 ))
 
 # vim: set noet sw=4 ts=4:
diff --git a/external/epoxy/epoxy.noglx_means_noglx.patch.1 b/external/epoxy/epoxy.noglx_means_noglx.patch.1
new file mode 100644
index 000000000000..6a5c7eb3f472
--- /dev/null
+++ b/external/epoxy/epoxy.noglx_means_noglx.patch.1
@@ -0,0 +1,28 @@
+diff -ur epoxy.org/src/dispatch_common.c epoxy/src/dispatch_common.c
+--- epoxy.org/src/dispatch_common.c	2017-09-15 14:59:07.458635939 +0200
++++ epoxy/src/dispatch_common.c	2017-09-15 15:03:16.978088807 +0200
+@@ -660,10 +660,13 @@
+ #elif defined(__APPLE__)
+     return epoxy_gl_dlsym(name);
+ #else
++#if PLATFORM_HAS_GLX
+     if (epoxy_current_context_is_glx()) {
+         return glXGetProcAddressARB((const GLubyte *)name);
+-    } else {
++    } else
++#endif
+ #if PLATFORM_HAS_EGL
++    {
+         GLenum egl_api = epoxy_egl_get_current_gl_context_api();
+ 
+         switch (egl_api) {
+@@ -673,8 +676,8 @@
+         case EGL_NONE:
+             break;
+         }
+-#endif
+     }
++#endif
+     errx(1, "Couldn't find current GLX or EGL context.\n");
+ #endif
+ }


More information about the Libreoffice-commits mailing list