summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDenis Kenzior <denkenz@gmail.com>2019-05-16 15:10:53 -0500
committerDenis Kenzior <denkenz@gmail.com>2019-05-16 15:10:53 -0500
commit48e31f9fc3cf3c486c3d27a67b2687f6df0c5c71 (patch)
treeba99943b2f40ea0493f3c31be868631c4e733dfd /src
parent5d3640397abe7c2e48ec09fd3061cdfd395bab4a (diff)
downloadofono-48e31f9fc3cf3c486c3d27a67b2687f6df0c5c71.tar.gz
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.
Diffstat (limited to 'src')
-rw-r--r--src/main.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main.c b/src/main.c
index 8623a060..4529cde1 100644
--- a/src/main.c
+++ b/src/main.c
@@ -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();