about summary refs log tree commit diff
path: root/benchtests/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'benchtests/Makefile')
-rw-r--r--benchtests/Makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/benchtests/Makefile b/benchtests/Makefile
index 097d3c3560..5d3de5db0b 100644
--- a/benchtests/Makefile
+++ b/benchtests/Makefile
@@ -114,6 +114,12 @@ include ../Rules
 
 binaries-bench := $(addprefix $(objpfx)bench-,$(bench))
 
+# This makes sure CPPFLAGS-nonlib and CFLAGS-nonlib are passed
+# for all these modules.
+cpp-srcs-left := $(binaries-bench:=.c)
+lib := nonlib
+include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left))
+
 bench-deps := bench-skeleton.c Makefile
 
 run-bench = $(test-wrapper-env) \