diff options
author | Tom Zanussi <tzanussi@gmail.com> | 2009-11-30 02:18:46 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2009-11-30 03:03:59 -0500 |
commit | f8be4231f82ab56a87ce74906671afbe1aa9ec75 (patch) | |
tree | 46056a8e4a1282fc08ed786fb303144049501668 /tools | |
parent | cf72344d1ad7b33805ef8d65e758b267e6f4cb8d (diff) |
perf trace/scripting: Silence PERL_EMBED_* backtick errors
The backtick shell substitutions for PERL_EMBED_LDOPT/CCOPT make
a lot of noise on stderr if Embed.pm isn't installed - this
silences them.
Signed-off-by: Tom Zanussi <tzanussi@gmail.com>
Cc: fweisbec@gmail.com
Cc: rostedt@goodmis.org
Cc: anton@samba.org
Cc: hch@infradead.org
LKML-Reference: <1259565529-6407-2-git-send-email-tzanussi@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 8ad57b51d648..d62a2d7ff4e9 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile | |||
@@ -490,8 +490,8 @@ else | |||
490 | LIB_OBJS += util/probe-finder.o | 490 | LIB_OBJS += util/probe-finder.o |
491 | endif | 491 | endif |
492 | 492 | ||
493 | PERL_EMBED_LDOPTS = `perl -MExtUtils::Embed -e ldopts` | 493 | PERL_EMBED_LDOPTS = `perl -MExtUtils::Embed -e ldopts 2>/dev/null` |
494 | PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts` | 494 | PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null` |
495 | 495 | ||
496 | ifneq ($(shell sh -c "(echo '\#include <EXTERN.h>'; echo '\#include <perl.h>'; echo 'int main(void) { perl_alloc(); return 0; }') | $(CC) -x c - $(PERL_EMBED_CCOPTS) -o /dev/null $(PERL_EMBED_LDOPTS) > /dev/null 2>&1 && echo y"), y) | 496 | ifneq ($(shell sh -c "(echo '\#include <EXTERN.h>'; echo '\#include <perl.h>'; echo 'int main(void) { perl_alloc(); return 0; }') | $(CC) -x c - $(PERL_EMBED_CCOPTS) -o /dev/null $(PERL_EMBED_LDOPTS) > /dev/null 2>&1 && echo y"), y) |
497 | BASIC_CFLAGS += -DNO_LIBPERL | 497 | BASIC_CFLAGS += -DNO_LIBPERL |