From mboxrd@z Thu Jan 1 00:00:00 1970 From: Zoltan Kiss Subject: [PATCH] acl: fix target arch detection Date: Fri, 25 Sep 2015 22:59:07 -0700 Message-ID: <1443247147-5763-1-git-send-email-zoltan.kiss@linaro.org> To: dev@dpdk.org Return-path: Received: from mail-pa0-f47.google.com (mail-pa0-f47.google.com [209.85.220.47]) by dpdk.org (Postfix) with ESMTP id AE865CF9 for ; Sat, 26 Sep 2015 07:59:21 +0200 (CEST) Received: by pablk4 with SMTP id lk4so27862910pab.3 for ; Fri, 25 Sep 2015 22:59:21 -0700 (PDT) List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" This test selects AVX2 code even if the target architecture doesn't support it. Signed-off-by: Zoltan Kiss --- diff --git a/lib/librte_acl/Makefile b/lib/librte_acl/Makefile index 46acc2b..17a9f96 100644 --- a/lib/librte_acl/Makefile +++ b/lib/librte_acl/Makefile @@ -57,7 +57,7 @@ CFLAGS_acl_run_sse.o += -msse4.1 # then add support for AVX2 classify method. # -CC_AVX2_SUPPORT=$(shell $(CC) -march=core-avx2 -dM -E - &1 | \ +CC_AVX2_SUPPORT=$(shell $(CC) $(MACHINE_FLAGS) -dM -E - &1 | \ grep -q AVX2 && echo 1) ifeq ($(CC_AVX2_SUPPORT), 1)