login
Login
/
Register
Search
Search this site:
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2010
»
August
»
21
Re: [PATCH 2/2] perf: fix build with -Wl,--as-needed
view
thread
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From: Arnaldo Carvalho de Melo
Subject:
Re: [PATCH 2/2] perf: fix build with -Wl,--as-needed
Date: Saturday, August 21, 2010 - 10:25 am
Tom, Here it is. - Arnaldo Em Sat, Aug 21, 2010 at 03:38:21AM +0300, Kirill A. Shutemov escreveu:
quoted text
> We need to put all libraries at the end of linking command to be able to > use -Wl,--as-needed (default in some distributions). > > python-config --ldconfig also prints -lpython*, but we need to put it > to EXTLIBS, not to ALL_LDFLAGS. > > Let's add call of python-config --libs and put its output to EXTLIBS. > > Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> > --- > tools/perf/Makefile | 4 +++- > 1 files changed, 3 insertions(+), 1 deletions(-) > > diff --git a/tools/perf/Makefile b/tools/perf/Makefile > index 496a0d6..a5972f6 100644 > --- a/tools/perf/Makefile > +++ b/tools/perf/Makefile > @@ -605,12 +605,14 @@ ifdef NO_LIBPYTHON > BASIC_CFLAGS += -DNO_LIBPYTHON > else > PYTHON_EMBED_LDOPTS = `python-config --ldflags 2>/dev/null` > + PYTHON_EMBED_LIBS = `python-config --libs 2>/dev/null` > PYTHON_EMBED_CCOPTS = `python-config --cflags 2>/dev/null` > - FLAGS_PYTHON_EMBED=$(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS) > + FLAGS_PYTHON_EMBED=$(PYTHON_EMBED_CCOPTS) $(PYTHON_EMBED_LDOPTS) $(PYTHON_EMBED_LIBS) > ifneq ($(call try-cc,$(SOURCE_PYTHON_EMBED),$(FLAGS_PYTHON_EMBED)),y) > BASIC_CFLAGS += -DNO_LIBPYTHON > else > ALL_LDFLAGS += $(PYTHON_EMBED_LDOPTS) > + EXTLIBS += $(PYTHON_EMBED_LIBS) > LIB_OBJS += $(OUTPUT)util/scripting-engines/trace-event-python.o > LIB_OBJS += $(OUTPUT)scripts/python/Perf-Trace-Util/Context.o > endif > -- > 1.7.2.1
--
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/2] perf: add test for strlcpy()
, Kirill A. Shutemov
, (Fri Aug 20, 5:38 pm)
[PATCH 2/2] perf: fix build with -Wl,--as-needed
, Kirill A. Shutemov
, (Fri Aug 20, 5:38 pm)
Re: [PATCH 1/2] perf: add test for strlcpy()
, Arnaldo Carvalho de Melo
, (Sat Aug 21, 10:15 am)
Re: [PATCH 1/2] perf: add test for strlcpy()
, Kirill A. Shutemov
, (Sat Aug 21, 10:24 am)
Re: [PATCH 2/2] perf: fix build with -Wl,--as-needed
, Arnaldo Carvalho de Melo
, (Sat Aug 21, 10:25 am)
[tip:perf/core] perf tools: add test for strlcpy()
, tip-bot for Kirill A ...
, (Sat Aug 21, 1:19 pm)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Paul Turner
[tg_shares_up rewrite v4 11/11] sched: update tg->shares after cpu.shares write
Mr. James W. Laferriere
Re: Linux 2.6.25-rc1 , syntax error near unexpected token `;'
Robin Lee Powell
NFS hang + umount -f: better behaviour requested.
Linus Torvalds
Linux 2.6.34-rc4
Colin Cross
[PATCH 12/21] ARM: tegra: Add suspend and hotplug support
git
:
Fredrik Kuivinen
Re: fatal: unable to create '.git/index': File exists
Wink Saville
How-to combine several separate git repos?
Emily Ren
How to pull remote branch with specified commit id?
Denis Bueno
Git clone error
pradeep singh
git-update-server-info may be required,cannot clone and pull from a remote reposit...
openbsd-misc
:
Sevan / Venture37
Re: This is what Linus Torvalds calls openBSD crowd
Netmaffia.hu
Tini Lányok AKCIÓBAN OTTHON
Siju George
This is what Linus Torvalds calls openBSD crowd
Darrin Chandler
Re: OT: Python (was Re: vi in /bin)
frantisek holop
Re: splassert: vwakeup: and friends
linux-netdev
:
Jamie Lokier
Re: POHMELFS high performance network filesystem. Transactions, failover, performa...
Timo Teräs
ip xfrm policy semantics
Ron Mercer
[net-next PATCH 2/2] qlge: Version change to v1.00.00.27
Maciej W. Rozycki
Re: [PATCH] flush_work_sync vs. flush_scheduled_work Re: [PATCH] PHYLIB: IRQ event...
Jarek Poplawski
Re: socket api problem: can't bind an ipv6 socket to ::ffff:0.0.0.0
git-commits-head
:
Linux Kernel Mailing List
powerpc/fsl_msi: enable msi allocation in all banks
Linux Kernel Mailing List
ASoC: fix registration of the SoC card in the Freescale MPC8610 drivers
Linux Kernel Mailing List
drivers/acpi: use kasprintf
Linux Kernel Mailing List
bnx2x: Moving includes
Linux Kernel Mailing List
[ARM] mmp: add dma support to mmp2
Colocation donated by:
Syndicate