From 519c2b47b1b69f7de0e6dd8184bb2e21e323381b Mon Sep 17 00:00:00 2001 From: Harish Date: Mon, 29 Jan 2018 11:29:50 +0530 Subject: [PATCH] Fix option -march with -mcpu for POWER architecture In Makefile, -mcpu option is added for POWER architecture instead of -march Signed-off-by: Harish --- UnixBench/Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/UnixBench/Makefile b/UnixBench/Makefile index 24336b2..4b1d5f8 100644 --- a/UnixBench/Makefile +++ b/UnixBench/Makefile @@ -96,6 +96,8 @@ else # - Not Supported: RISC-V, IBM Power, etc... ifneq ($(ARCH),$(filter $(ARCH),ppc64 ppc64le)) OPTON += -march=native -mtune=native + else + OPTON += -mcpu=native -mtune=native endif endif @@ -104,6 +106,8 @@ else # (-mmacosx-versin-min= requires at least that version of SDK be installed) ifneq ($(ARCH),$(filter $(ARCH),ppc64 ppc64le)) OPTON += -march=native -mmacosx-version-min=10.10 + else + OPTON += -mcpu=native endif #http://stackoverflow.com/questions/9840207/how-to-use-avx-pclmulqdq-on-mac-os-x-lion/19342603#19342603 CFLAGS += -Wa,-q