]> git.karo-electronics.de Git - karo-tx-linux.git/commit
perf tools: Support static build
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 29 Oct 2009 15:20:02 +0000 (17:20 +0200)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 May 2011 22:55:27 +0000 (15:55 -0700)
commit9fb3f52e290c371e87215218465ec9ae95053b8e
tree9fbc18049dc22134f7f6387a01235f5a4f08eb81
parent3d53e5c40f526e3b911a90b390cde4c602623194
perf tools: Support static build

commit 751386507701010831d72c522171753d2cd903d2 upstream.

This makes it possible to build perf statically, by
performing:

  make LDFLAGS=-static

Since static libraries are only searched in the order they are
specified, move library list from LDFLAGS to EXTLIBS, so that
they are put at the end of linker command line.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
LKML-Reference: <20091029152002.GA5406@redhat.com>
[ v2: resolved conflicts ]
Signed-off-by: Ingo Molnar <mingo@elte.hu>
[bwh: Backport to 2.6.32]
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
tools/perf/Makefile