r10334: Use CPPDEFINES instead of CCFLAGS for adding preprocessor symbols.
authorTim Potter <tpot@samba.org>
Mon, 19 Sep 2005 23:37:01 +0000 (23:37 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:38:28 +0000 (13:38 -0500)
(This used to be commit ba305886fd404161f4d081d2ffe60c824e932641)

source4/SConstruct

index 43ca7517fce0dc97f0aec49f6652fe3e9f318692..458969acaac4d350b113cc0c4a330bdd6def8d83 100644 (file)
@@ -1,5 +1,4 @@
 #!/usr/bin/env python
-#            tastes like -*- python -*-
 
 # This is the experimental scons build script for Samba 4. For a proper 
 # build use the old build system (configure + make). scons may
@@ -12,8 +11,9 @@ hostenv = Environment(
                toolpath=['build/scons','.'],
                tools=['default'],
                CPPPATH=['#include','#','#lib'], 
-               CCFLAGS='-D_SAMBA_BUILD_'
+                CPPDEFINES={'_SAMBA_BUILD_': None},
                )
+
 hostenv.Append(CPPPATH = ['#heimdal_build', '#heimdal/lib/krb5',
                          '#heimdal/lib/hdb', '#heimdal/lib/gssapi',
                          '#heimdal/lib/asn1', '#heimdal/lib/des',
@@ -48,4 +48,3 @@ dynconfig = dynenv.Object('dynconfig.c')
 Export('dynconfig')
 
 SConscript(dirs=['param','lib'],exports='hostenv')
-