linux-trace-devel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jerome Marchand <jmarchan@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: linux-trace-devel@vger.kernel.org
Subject: Re: [PATCH] libtracecmd: don't ignore LDFLAGS when linking the shared libs
Date: Thu, 11 Nov 2021 19:24:37 +0100	[thread overview]
Message-ID: <7f195c45-3e1c-6041-eb59-78a78c191128@redhat.com> (raw)
In-Reply-To: <20211111131131.585caf0a@gandalf.local.home>

On 11/11/2021 19:11, Steven Rostedt wrote:
> On Thu, 11 Nov 2021 19:03:18 +0100
> "Jerome Marchand" <jmarchan@redhat.com> 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@redhat.com>
> 
> 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?

No, it wasn't my intention since I haven't noticed that, but it looks 
like pretty much the same patch would apply.

Jerome

> 
> -- 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)		\
> 


      reply	other threads:[~2021-11-11 18:24 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-11-11 18:03 [PATCH] libtracecmd: don't ignore LDFLAGS when linking the shared libs Jerome Marchand
2021-11-11 18:11 ` Steven Rostedt
2021-11-11 18:24   ` Jerome Marchand [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f195c45-3e1c-6041-eb59-78a78c191128@redhat.com \
    --to=jmarchan@redhat.com \
    --cc=linux-trace-devel@vger.kernel.org \
    --cc=rostedt@goodmis.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).