blob: f9858e7f20645bea9b847c5ddbc407a79a2e9d45 [file] [log] [blame]
Brad Bishop15ae2502019-06-18 21:44:24 -04001From 48e31f9fc3cf3c486c3d27a67b2687f6df0c5c71 Mon Sep 17 00:00:00 2001
2From: Denis Kenzior <denkenz@gmail.com>
3Date: Thu, 16 May 2019 15:10:53 -0500
4Subject: main: Quiet ld errors with external ell
5
6When oFono is built with --enable-external-ell, the compiler for some
7reason does not generate a debug section on some systems. This is due
8to the fact that l_debug is never called. However, ell also does not
9call l_debug, yet when built-in ell is used, the section is created by
10the compiler.
11
12For now work around this by adding a no-op l_debug() call in main.c.
13The real fix is to migrate all of the oFono logging functionality to use
14ell instead.
15
16Upstream-Status: Backport
17Signed-off-by: Adrian Bunk <bunk@stusta.de>
18---
19 src/main.c | 1 +
20 1 file changed, 1 insertion(+)
21
22diff --git a/src/main.c b/src/main.c
23index 8623a060..4529cde1 100644
24--- a/src/main.c
25+++ b/src/main.c
26@@ -236,6 +236,7 @@ int main(int argc, char **argv)
27 event_loop = g_main_loop_new(NULL, FALSE);
28
29 l_log_set_stderr();
30+ l_debug("");
31 l_debug_enable("*");
32 l_main_init();
33
34--
352.20.1
36