X-Git-Url: https://git.karo-electronics.de/?a=blobdiff_plain;f=tools%2Fperf%2FMakefile;h=071abe1a9dcbb06a11d714f87a4c9f4a5d1587f6;hb=02f7a0df82b15ceee37e2e24caa5dd68a2585682;hp=940257b5774ec209d09e3b2d4fbee647ff86dd71;hpb=c9e0b8454582b413bc64c16693c7979417cad3eb;p=karo-tx-linux.git diff --git a/tools/perf/Makefile b/tools/perf/Makefile index 940257b5774e..071abe1a9dcb 100644 --- a/tools/perf/Makefile +++ b/tools/perf/Makefile @@ -52,7 +52,10 @@ ifeq ($(ARCH),i386) endif ifeq ($(ARCH),x86_64) ARCH := x86 - IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -xc - | tail -n 1) + IS_X86_64 := 0 + ifeq (, $(findstring m32,$(EXTRA_CFLAGS))) + IS_X86_64 := $(shell echo __x86_64__ | ${CC} -E -x c - | tail -n 1) + endif ifeq (${IS_X86_64}, 1) RAW_ARCH := x86_64 ARCH_CFLAGS := -DARCH_X86_64