void-packages/srcpkgs/efl/patches/0005-eina-only-enable-EINA_LOG_BACKTRACE-when-backtrace-A.patch
q66 0c87bf36c2 efl: fixes from git, use gles by default, backtraces on musl
This unbreaks accelerated E with Wayland for one.

Also, gles2 is now a suboption of opengl, as that makes more sense.
2020-06-11 17:07:16 +02:00

30 lines
787 B
Diff

From 8f59fb469fc47b2ee64453407b7d4ce4d8f29f63 Mon Sep 17 00:00:00 2001
From: Daniel Kolesa <d.kolesa@samsung.com>
Date: Thu, 11 Jun 2020 02:18:50 +0200
Subject: [PATCH 5/7] eina: only enable EINA_LOG_BACKTRACE when backtrace API
is present
This prevents build breakage on platforms that either don't have
backtrace() or don't have the appropriate library for it installed.
---
src/lib/eina/eina_log.c | 3 +++
1 file changed, 3 insertions(+)
diff --git src/lib/eina/eina_log.c src/lib/eina/eina_log.c
index 7c66ee0b53..531faba093 100644
--- src/lib/eina/eina_log.c
+++ src/lib/eina/eina_log.c
@@ -42,7 +42,10 @@
#endif
#include "eina_debug_private.h"
+
+#ifdef HAVE_BACKTRACE
#define EINA_LOG_BACKTRACE
+#endif
#include "eina_config.h"
#include "eina_private.h"
--
2.27.0