public inbox for linux-next@vger.kernel.org 
 help / color / mirror / Atom feed
* [PATCH] tools/perf: build when EXTRA_CFLAGS=-m32 is supplied
@ 2012-08-09 12:12 Andy Shevchenko
  0 siblings, 0 replies; only message in thread
From: Andy Shevchenko @ 2012-08-09 12:12 UTC (permalink / raw)
  To: linux-next, Arnaldo Carvalho de Melo; +Cc: Andy Shevchenko

ARCH=x86 NO_LIBPERL=1 NO_LIBPYTHON=1 NO_NEWT=1 make V=1 -C tools EXTRA_CFLAGS=-m32 perf
...

/usr/bin/ld: Warning: size of symbol `die' changed from 36 in libperf.a(usage.o) to 161 in ../lib/traceevent//libtraceevent.a(parse-utils.o)
/usr/bin/ld: Warning: size of symbol `warning' changed from 54 in libperf.a(usage.o) to 161 in ../lib/traceevent//libtraceevent.a(parse-utils.o)
/usr/bin/ld: i386:x86-64 architecture of input file `../lib/traceevent//libtraceevent.a(event-parse.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `../lib/traceevent//libtraceevent.a(trace-seq.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `../lib/traceevent//libtraceevent.a(parse-filter.o)' is incompatible with i386 output
/usr/bin/ld: i386:x86-64 architecture of input file `../lib/traceevent//libtraceevent.a(parse-utils.o)' is incompatible with i386 output
collect2: error: ld returned 1 exit status

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux•intel.com>
---
 tools/lib/traceevent/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/lib/traceevent/Makefile b/tools/lib/traceevent/Makefile
index 14131cb..65d5512 100644
--- a/tools/lib/traceevent/Makefile
+++ b/tools/lib/traceevent/Makefile
@@ -125,7 +125,7 @@ EVENT_PARSE_VERSION = $(EP_VERSION).$(EP_PATCHLEVEL).$(EP_EXTRAVERSION)
 INCLUDES = -I. -I/usr/local/include $(CONFIG_INCLUDES)
 
 # Set compile option CFLAGS if not set elsewhere
-CFLAGS ?= -g -Wall
+CFLAGS ?= -g -Wall $(EXTRA_CFLAGS)
 
 # Append required CFLAGS
 override CFLAGS += $(CONFIG_FLAGS) $(INCLUDES) $(PLUGIN_DIR_SQ)
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2012-08-09 12:12 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-08-09 12:12 [PATCH] tools/perf: build when EXTRA_CFLAGS=-m32 is supplied Andy Shevchenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox