Skip to contentSkip to conversation

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

PATCH New Andy Shevchenko 1 participant 1 message Aug 9, 2012 Linux-next tree

lore
Share & tools
lore
#0 lore raw

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

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

---
 tools/lib/traceevent/Makefile |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tools/lib/traceevent/Makefile +1 -1
index 14131cb..65d5512 100644
@@ -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)
Signature · 1 line
1.7.10.4