Make dlopen more robust by using the .0 target for the library
[lttng-ust.git] / include / lttng / tracepoint.h
index 2942c175e7cf0580ecf39edd99b78a1eb47d9c9c..1adb149db3994a5dcd40840126bfdef22868cb2b 100644 (file)
@@ -190,7 +190,7 @@ static void __attribute__((constructor)) __tracepoints__init(void)
        if (__tracepoint_registered++)
                return;
 
-       liblttngust_handle = dlopen("liblttng-ust.so", RTLD_NOW | RTLD_GLOBAL);
+       liblttngust_handle = dlopen("liblttng-ust.so.0", RTLD_NOW | RTLD_GLOBAL);
        if (!liblttngust_handle)
                return;
        tracepoint_register_lib =
This page took 0.023358 seconds and 4 git commands to generate.