Re: [PATCH] libtracecmd: don't ignore LDFLAGS when linking the shared libs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 11 Nov 2021 19:03:18 +0100
"Jerome Marchand" <jmarchan@xxxxxxxxxx> wrote:

> do_compile_shared_library should't ignore LDFLAGS. That makes it
> difficult for packager to follow their distribution packaging
> guidelines.
> 
> Signed-off-by: Jerome Marchand <jmarchan@xxxxxxxxxx>

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

> ---
>  scripts/utils.mk | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/scripts/utils.mk b/scripts/utils.mk
> index 6865a746..53b2b074 100644
> --- a/scripts/utils.mk
> +++ b/scripts/utils.mk
> @@ -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)		\




[Index of Archives]     [Linux USB Development]     [Linux USB Development]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux