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.
This commit is contained in:
Siddhesh Poyarekar 2013-06-10 10:08:46 +05:30
parent 416641e687
commit 50b818bf96
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2013-06-10 Siddhesh Poyarekar <siddhesh@redhat.com>
* benchtests/Makefile (CPPFLAGS-nonlib): Append values instead
of assigning.
2013-06-08 Joseph Myers <joseph@codesourcery.com>
* sysdeps/gnu/errlist.awk: Do not generate space at end of

View file

@ -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.