All of lore.kernel.org
 help / color / mirror / Atom feed
From: jolsa@redhat.com (Jiri Olsa)
To: linux-snps-arc@lists.infradead.org
Subject: [PATCH] perf tools: Fix static building
Date: Wed, 31 Aug 2016 09:21:28 +0200	[thread overview]
Message-ID: <20160831072128.GB4740@krava> (raw)
In-Reply-To: <1471887222-26270-1-git-send-email-abrodkin@synopsys.com>

On Mon, Aug 22, 2016@08:33:42PM +0300, Alexey Brodkin wrote:
> With commit e3d09ec8126f ("tools lib traceevent: Export dynamic symbols
> used by traceevent plugins") we started to add "--dynamic-list" in
> LDFLAGS. One side-effect of that was inability to build really
> statically-linked perf.

IIRC --dynamic-list forces perf to exports some symbols to
be used by plugins.. don't see this breaking static build

also it's working properly for me:

[jolsa at krava perf]$ make LDFLAGS=-static
...
[jolsa at krava perf]$ ldd ./perf
        not a dynamic executable

unless I miss what you mean by 'really statically-linked' ;-)

Maybe different features enabled/build environment could you
please send the .config-detected along with the build error?

thanks,
jirka

WARNING: multiple messages have this Message-ID (diff)
From: Jiri Olsa <jolsa@redhat.com>
To: Alexey Brodkin <Alexey.Brodkin@synopsys.com>
Cc: linux-kernel@vger.kernel.org, linux-snps-arc@lists.infradead.org,
	Arnaldo Carvalho de Melo <acme@redhat.com>,
	Vineet Gupta <Vineet.Gupta1@synopsys.com>,
	Wang Nan <wangnan0@huawei.com>, Jiri Olsa <jolsa@kernel.org>,
	He Kuang <hekuang@huawei.com>,
	Masami Hiramatsu <masami.hiramatsu.pt@hitachi.com>,
	Namhyung Kim <namhyung@kernel.org>,
	Peter Zijlstra <a.p.zijlstra@chello.nl>,
	Zefan Li <lizefan@huawei.com>,
	pi3orama@163.com
Subject: Re: [PATCH] perf tools: Fix static building
Date: Wed, 31 Aug 2016 09:21:28 +0200	[thread overview]
Message-ID: <20160831072128.GB4740@krava> (raw)
In-Reply-To: <1471887222-26270-1-git-send-email-abrodkin@synopsys.com>

On Mon, Aug 22, 2016 at 08:33:42PM +0300, Alexey Brodkin wrote:
> With commit e3d09ec8126f ("tools lib traceevent: Export dynamic symbols
> used by traceevent plugins") we started to add "--dynamic-list" in
> LDFLAGS. One side-effect of that was inability to build really
> statically-linked perf.

IIRC --dynamic-list forces perf to exports some symbols to
be used by plugins.. don't see this breaking static build

also it's working properly for me:

[jolsa@krava perf]$ make LDFLAGS=-static
...
[jolsa@krava perf]$ ldd ./perf
        not a dynamic executable

unless I miss what you mean by 'really statically-linked' ;-)

Maybe different features enabled/build environment could you
please send the .config-detected along with the build error?

thanks,
jirka

  parent reply	other threads:[~2016-08-31  7:21 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-22 17:33 [PATCH] perf tools: Fix static building Alexey Brodkin
2016-08-22 17:33 ` Alexey Brodkin
2016-08-30 16:21 ` Vineet Gupta
2016-08-30 16:21   ` Vineet Gupta
2016-08-31  7:21 ` Jiri Olsa [this message]
2016-08-31  7:21   ` Jiri Olsa
2016-09-01 18:28   ` Vineet Gupta
2016-09-01 18:28     ` Vineet Gupta
2016-09-14 16:21     ` Alexey Brodkin
2016-09-14 16:21       ` Alexey Brodkin
2016-08-31  7:24 ` Jiri Olsa
2016-08-31  7:24   ` Jiri Olsa

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=20160831072128.GB4740@krava \
    --to=jolsa@redhat.com \
    --cc=linux-snps-arc@lists.infradead.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.