diff options
author | Harald Welte <laforge@gnumonks.org> | 2017-10-29 10:57:27 +0100 |
---|---|---|
committer | Harald Welte <laforge@gnumonks.org> | 2017-10-29 11:02:34 +0100 |
commit | 3e51d3e5bd6d3c2dff79e47c7ad22c073b0dba93 (patch) | |
tree | 25f90b833fcf3823d6b28990cb64b26a07465d2b /debian | |
parent | ac0490ad2a086a4e2664bed19bfe2787cbf4d450 (diff) |
Call osmo_init_logging() before static BTS constructor
The BTS constructor uses functions of libosmocore that could in turn
want to log something. This requires the logging to be initialized
before.
The only way to achieve this is to add an __attribute__((constructor))
function *before* the BTS constructor is being run.
This solution might not be elegant, but I guess it's the only way to
initialize a C library before calling C++ constructors of global static
instance of a class.
In case anyone comes up with a better / cleaner approach, we can always
change later.
This change requires libosmocore >= 0.10.1, as only that permits
multiple calls to osmo_init_logging() which may now occur.
Change-Id: I28dc4f0db229518348c92413959fed5ae85d753d
Diffstat (limited to 'debian')
-rw-r--r-- | debian/control | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/control b/debian/control index 69930e88..ea430164 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: osmo-pcu Section: net Priority: optional Maintainer: Holger Hans Peter Freyther <holger@moiji-mobile.com> -Build-Depends: debhelper (>= 7.0.0~), dh-autoreconf, dh-systemd (>= 1.5), autotools-dev, pkg-config, libosmocore-dev +Build-Depends: debhelper (>= 7.0.0~), dh-autoreconf, dh-systemd (>= 1.5), autotools-dev, pkg-config, libosmocore-dev (>= 0.10.1) Standards-Version: 3.8.4 Homepage: http://osmocom.org/projects/osmopcu Vcs-Git: git://git.osmocom.org/osmo-pcu |