From: Mathieu Desnoyers Date: Tue, 13 Apr 2021 21:24:50 +0000 (-0400) Subject: Fix: perform lazy initialization of getenv common lib X-Git-Tag: v2.13.0-rc1~107 X-Git-Url: http://git.lttng.org./?a=commitdiff_plain;h=407937dc27362ba6f169a7b2a01e41f4ab6ede82;hp=407937dc27362ba6f169a7b2a01e41f4ab6ede82;p=lttng-ust.git Fix: perform lazy initialization of getenv common lib The ust-dl wrapper ends up calling into the getenv common lib very early from library constructors through use of dlopen by the tracepoint instrumentation code. This happens before the getenv common lib is explicitly initialized by liblttng-ust's contructor. Perform lazy initialization for those early use by constructor scenarios. Signed-off-by: Mathieu Desnoyers Change-Id: I9f84bb776a62e03b11db0386e267df00eb165ddd ---