Move CFLAGS overrides for SWIG modules to Makefile.
[ira/wip.git] / source4 / lib / events / config.mk
index e4b5f40571f26d135cca00ea19d66343e910e204..3e5a5e2a2f84ce825113cc6e83a923010483b6aa 100644 (file)
@@ -58,3 +58,5 @@ PRIVATE_DEPENDENCIES = LIBEVENTS LIBSAMBA-HOSTCONFIG
 swig_events_OBJ_FILES = $(libeventssrcdir)/events_wrap.o
 
 $(eval $(call python_py_module_template,events.py,$(libeventssrcdir)/events.py))
+
+$(swig_events_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"