summaryrefslogtreecommitdiff
path: root/source4/auth
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-05-21 21:32:53 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-05-21 21:32:53 +0200
commit82bcf967b79321706cd19c759ea54c4465fe0d96 (patch)
treef232350d09fe7f9c520b236191679b283894888e /source4/auth
parent2914b0ca04355f6f175b603a1de6030b20ce0830 (diff)
downloadsamba-82bcf967b79321706cd19c759ea54c4465fe0d96.tar.gz
samba-82bcf967b79321706cd19c759ea54c4465fe0d96.tar.bz2
samba-82bcf967b79321706cd19c759ea54c4465fe0d96.zip
Move CFLAGS overrides for SWIG modules to Makefile.
(This used to be commit 58665a8a8e4b10435aebbf2c95b6a8e50db232d6)
Diffstat (limited to 'source4/auth')
-rw-r--r--source4/auth/config.mk2
-rw-r--r--source4/auth/credentials/config.mk2
2 files changed, 4 insertions, 0 deletions
diff --git a/source4/auth/config.mk b/source4/auth/config.mk
index 0162653076..78a267ced1 100644
--- a/source4/auth/config.mk
+++ b/source4/auth/config.mk
@@ -44,3 +44,5 @@ SWIG_FILE = auth.i
$(eval $(call python_py_module_template,auth.py,$(authsrcdir)/auth.py))
swig_auth_OBJ_FILES = $(authsrcdir)/auth_wrap.o
+
+$(swig_auth_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"
diff --git a/source4/auth/credentials/config.mk b/source4/auth/credentials/config.mk
index fc01f7eddc..18cf460179 100644
--- a/source4/auth/credentials/config.mk
+++ b/source4/auth/credentials/config.mk
@@ -20,3 +20,5 @@ SWIG_FILE = credentials.i
$(eval $(call python_py_module_template,credentials.py,$(authsrcdir)/credentials/credentials.py))
swig_credentials_OBJ_FILES = $(authsrcdir)/credentials/credentials_wrap.o
+
+$(swig_credentials_OBJ_FILES): CFLAGS+="$(CFLAG_NO_UNUSED_MACROS) $(CFLAG_NO_CAST_QUAL)"