This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH] Avoid overwriting earlier flags in CPPFLAGS-nonlib in benchtests
- From: Siddhesh Poyarekar <siddhesh at redhat dot com>
- To: libc-alpha at sourceware dot org
- Date: Tue, 4 Jun 2013 12:49:07 +0530
- Subject: [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.