Fix: loglevel and model_emf_uri with g++ compiled probes
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Oct 2016 21:56:42 +0000 (17:56 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Tue, 18 Oct 2016 22:03:39 +0000 (18:03 -0400)
Fix the loglevel and model_emf_uri features for probe providers compiled
with g++. They were previously effectless because of C++ symbol name
mangling. The weakref was refering to the non-mangled symbol, but C++
emits a mangled symbol for the static variable.

Fix this by emitting an extern "C" symbol with hidden visibility on C++.
With a C compiled, this simply turns a static variable into a variable
with hidden visibility.

Fixes: #1069
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>

No differences found
This page took 0.024529 seconds and 4 git commands to generate.