restore check CFLAGS when compiling unit tests
@@ -26,7 +26,7 @@ check_PROGRAMS = unit/main
unit_main_SOURCES = unit/main.c unit/test_md_json.c unit/test_md_util.c
unit_main_LDADD = $(top_builddir)/src/libmd.la
-unit_main_CFLAGS = -Werror -I$(top_srcdir)/src
+unit_main_CFLAGS = $(CHECK_CFLAGS) -Werror -I$(top_srcdir)/src
unit_main_LDADD += $(CHECK_LIBS) -l$(LIB_APR) -l$(LIB_APRUTIL)
unit_tests: $(TESTS)
