From: Marvin Liu Date: Thu, 19 Mar 2015 03:16:57 +0000 (+0800) Subject: app/test: fix build with gcc < 4.4 X-Git-Tag: spdx-start~9393 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=651dac9128703525aabc68a3aaee40b9704d19ed;p=dpdk.git app/test: fix build with gcc < 4.4 Option var-tracking-assignments supported in gcc from 4.4. Add gcc version check wil fix this issue. error: unrecognized command line option "-fno-var-tracking-assignments" Fixes: 74adbc5ef704 ("app/test: disable variable tracking assignment for memcpy") Signed-off-by: Marvin Liu --- diff --git a/app/test/Makefile b/app/test/Makefile index 9f0262c53f..4aca77c98d 100644 --- a/app/test/Makefile +++ b/app/test/Makefile @@ -152,9 +152,11 @@ CFLAGS += -D_GNU_SOURCE # Disable VTA for memcpy test ifeq ($(CC), gcc) +ifeq ($(shell test $(GCC_VERSION) -ge 44 && echo 1), 1) CFLAGS_test_memcpy.o += -fno-var-tracking-assignments CFLAGS_test_memcpy_perf.o += -fno-var-tracking-assignments endif +endif # this application needs libraries first DEPDIRS-y += lib