From 50b818bf96072fda433f7df4c307639b25e4da57 Mon Sep 17 00:00:00 2001 From: Siddhesh Poyarekar Date: Mon, 10 Jun 2013 10:08:46 +0530 Subject: Avoid overwriting earlier flags in CPPFLAGS-nonlib in benchtests When setting BENCH_DURATION in CPPFLAGS-nonlib, append to the variable instead of assigning to it, to avoid overwriting earlier set flags, notably the -DNOT_IN_libc=1 flag. --- benchtests/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'benchtests') diff --git a/benchtests/Makefile b/benchtests/Makefile index 67728537a8..680440f429 100644 --- a/benchtests/Makefile +++ b/benchtests/Makefile @@ -102,7 +102,7 @@ ifndef BENCH_DURATION BENCH_DURATION := 10 endif -CPPFLAGS-nonlib = -DDURATION=$(BENCH_DURATION) +CPPFLAGS-nonlib += -DDURATION=$(BENCH_DURATION) # Use clock_gettime to measure performance of functions. The default is to use # HP_TIMING if it is available. -- cgit v1.2.3