libtracecmd: don't ignore LDFLAGS when linking the shared libs
PATCH 1/1 libtracecmd: don't ignore LDFLAGS when linking the shared libs
do_compile_shared_library should't ignore LDFLAGS. That makes it difficult for packager to follow their distribution packaging guidelines.
--- scripts/utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/utils.mk +1 -1
@@ -72,7 +72,7 @@ do_build_static_lib = \ do_compile_shared_library = \ ($(print_shared_lib_compile) \ - $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LIBS)) + $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LDFLAGS) $(LIBS)) do_compile_plugin_obj = \ ($(print_plugin_obj_compile) \
Signature · 1 line
2.31.1
Quoted 5 lines · On Thu, 11 Nov 2021 19:03:18 +0100 "Jerome Marchand" <[email protected]>…
do_compile_shared_libraryshould't ignore LDFLAGS. That makes it difficult for packager to follow their distribution packaging guidelines.Signed-off-by Jerome Marchand <[email protected]>
Thanks Jerome, I'll queue this up.
Looks like libtracefs may suffer from the same issue (and libtraceevent looks fine).
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/
Did you want to submit a patch for libtracefs too?
-- Steve
Quoted 17 lines
--- scripts/utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/utils.mk +1
-1@@ -72,7 +72,7 @@ do_build_static_lib = \ do_compile_shared_library = \ ($(print_shared_lib_compile) \ - $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LIBS)) + $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LDFLAGS) $(LIBS)) do_compile_plugin_obj = \ ($(print_plugin_obj_compile) \
Quoted 11 lines · Steven Rostedt
Quoted 5 lines · On Thu, 11 Nov 2021 19:03:18 +0100 "Jerome Marchand" <[email protected]>…
do_compile_shared_libraryshould't ignore LDFLAGS. That makes it difficult for packager to follow their distribution packaging guidelines.Signed-off-by Jerome Marchand <[email protected]>Thanks Jerome, I'll queue this up.
Quoted 7 lines
Looks like libtracefs may suffer from the same issue (and libtraceevent looks fine).
https://git.kernel.org/pub/scm/libs/libtrace/libtracefs.git/
https://git.kernel.org/pub/scm/libs/libtrace/libtraceevent.git/Did you want to submit a patch for libtracefs too?
No, it wasn't my intention since I haven't noticed that, but it looks like pretty much the same patch would apply.
Jerome
Quoted 21 lines
-- Steve
Quoted 17 lines
--- scripts/utils.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)scripts/utils.mk +1
-1@@ -72,7 +72,7 @@ do_build_static_lib = \ do_compile_shared_library = \ ($(print_shared_lib_compile) \ - $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LIBS)) + $(CC) --shared $^ '-Wl,-soname,$(@F),-rpath=$$ORIGIN' -o $@ $(LDFLAGS) $(LIBS)) do_compile_plugin_obj = \ ($(print_plugin_obj_compile) \