Message ID | 20201216201135.380840809@goodmis.org (mailing list archive) |
---|---|
State | Accepted |
Commit | acea1910939f3ae63e0b298cad87b62bac42c4f7 |
Headers | show |
Series | libtracefs: More Makefile updates to make packaging the library easier | expand |
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) \