--- a/check-deps/Makefile
+++ b/check-deps/Makefile
@@ -19,7 +19,7 @@
 # This is needed for checking build dependency
 #
 
-CHECK_CFLAGS  = $(CFLAGS)  $(CFLAGS_$@) -O2 -Werror
+CHECK_CFLAGS  = $(CFLAGS)  $(CFLAGS_$@) $(CPPFLAGS) -O2 -Werror
 CHECK_LDFLAGS = $(LDFLAGS) $(LDFLAGS_$@)
 
 # libpython3 provides an embed verison of pkg-config file since python3.8
