Skip to content

Commit

Permalink
Avoid overwriting earlier flags in CPPFLAGS-nonlib in benchtests
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Siddhesh Poyarekar committed Jun 10, 2013
1 parent 416641e commit 50b818b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion benchtests/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 50b818b

Please sign in to comment.