[PATCH] tools/perf: build when EXTRA_CFLAGS=-m32 is supplied

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx>
---
 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

--
To unsubscribe from this list: send the line "unsubscribe linux-next" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Kernel]     [Linux USB Development]     [Yosemite News]     [Linux SCSI]

  Powered by Linux