wafsamba: allow passing 'use_hostcc' to SAMBA_SUBSYSTEM()
authorStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 07:30:12 +0000 (09:30 +0200)
committerStefan Metzmacher <metze@samba.org>
Mon, 12 Apr 2010 10:31:13 +0000 (12:31 +0200)
metze

buildtools/wafsamba/wafsamba.py

index e2d8052bc9b67fdaa7e56e6cbe78095dfe1ed433..55ae36a247a366d53260b11b279c9526b84415cf 100644 (file)
@@ -197,7 +197,7 @@ def SAMBA_BINARY(bld, binname, source,
                  ldflags=None,
                  cflags='',
                  autoproto=None,
-                 use_hostcc=None,
+                 use_hostcc=False,
                  compiler=None,
                  group='binaries',
                  manpages=None,
@@ -232,7 +232,8 @@ def SAMBA_BINARY(bld, binname, source,
                         autoproto      = autoproto,
                         subsystem_name = subsystem_name,
                         needs_python   = needs_python,
-                        local_include  = local_include)
+                        local_include  = local_include,
+                        use_hostcc     = use_hostcc)
 
     bld.SET_BUILD_GROUP(group)
 
@@ -357,6 +358,7 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
                     local_include_first=True,
                     subsystem_name=None,
                     enabled=True,
+                    use_hostcc=False,
                     vars=None,
                     needs_python=False):
     '''define a Samba subsystem'''
@@ -393,7 +395,8 @@ def SAMBA_SUBSYSTEM(bld, modname, source,
         samba_includes = includes,
         local_include  = local_include,
         local_include_first  = local_include_first,
-        samba_subsystem= subsystem_name
+        samba_subsystem= subsystem_name,
+        samba_use_hostcc = use_hostcc
         )
 
     if cflags_end is not None: