From: "Steven Rostedt (VMware)" <rostedt@xxxxxxxxxxx> Pass in "-rpath=$ORIGIN" to the linker when building libtracefs.so, such that the path for libtraceevent.so might be found if it is installed in the same location as libtracefs. Suggested-by: Yordan Karadzhov <ykaradzhov@xxxxxxxxxx> Signed-off-by: Steven Rostedt (VMware) <rostedt@xxxxxxxxxxx> --- scripts/utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/utils.mk b/scripts/utils.mk index 0d3c3194f6c5..7742e1981cef 100644 --- a/scripts/utils.mk +++ b/scripts/utils.mk @@ -56,7 +56,7 @@ do_build_static_lib = \ do_compile_shared_library = \ ($(print_shared_lib_compile) \ - $(CC) --shared $^ -Wl,-soname,$(@F) -o $@ $(LIBS)) + $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LIBS)) do_compile_plugin_obj = \ ($(print_plugin_obj_compile) \ -- 2.29.2