main: Quiet ld errors with external ell

When oFono is built with --enable-external-ell, the compiler for some
reason does not generate a debug section on some systems.  This is due
to the fact that l_debug is never called.  However, ell also does not
call l_debug, yet when built-in ell is used, the section is created by
the compiler.

For now work around this by adding a no-op l_debug() call in main.c.
The real fix is to migrate all of the oFono logging functionality to use
ell instead.
This commit is contained in:
Denis Kenzior 2019-05-16 15:10:53 -05:00
parent 5d3640397a
commit 48e31f9fc3
1 changed files with 1 additions and 0 deletions

View File

@ -236,6 +236,7 @@ int main(int argc, char **argv)
event_loop = g_main_loop_new(NULL, FALSE);
l_log_set_stderr();
l_debug("");
l_debug_enable("*");
l_main_init();