This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[PATCH] Avoid overwriting earlier flags in CPPFLAGS-nonlib in benchtests


Hi,

When setting BENCH_DURATION in CPPFLAGS-nonlib, the current code
assigns the flag to the variable, which overwrites the earlier set
-DNOT_IN_libc=1 flag.  This patch fixes it.  OK to commit?

Siddhesh

	* benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
	of assigning.

diff --git a/benchtests/Makefile b/benchtests/Makefile
index 6772853..680440f 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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]