summaryrefslogtreecommitdiff
path: root/source4/build/smb_build/input.pm
diff options
context:
space:
mode:
Diffstat (limited to 'source4/build/smb_build/input.pm')
-rw-r--r--source4/build/smb_build/input.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/build/smb_build/input.pm b/source4/build/smb_build/input.pm
index 92ab54a10e..431fd3cb83 100644
--- a/source4/build/smb_build/input.pm
+++ b/source4/build/smb_build/input.pm
@@ -165,6 +165,9 @@ sub check_python($$)
$python->{OBJ_FILES} = ["$dirname$basename\_wrap.o"];
$python->{LIBRARY_REALNAME} = "_$basename.\$(SHLIBEXT)";
$python->{PYTHON_FILES} = ["$dirname$basename.py"];
+ unless (defined($python->{CFLAGS})) { $python->{CFLAGS} = []; }
+ push (@{$python->{CFLAGS}}, $config::config{CFLAG_NO_UNUSED_MACROS});
+ push (@{$python->{CFLAGS}}, $config::config{CFLAG_NO_CAST_QUAL});
} else {
my $basename = $python->{NAME};
$basename =~ s/^python_//g;