From: Pavel Roskin Date: Fri, 23 Dec 2005 23:23:46 GMT Subject: [PATCH] qgit: allow overriding CCFLAGS Message-ID: <1135380226.18431.21.camel@dv> This patch allows overriding CCFLAGS by setting an environment variable or an argument to make. Signed-off-by: Pavel Roskin --- If anyone knows Python and scons well, it would be great to have a more generic solution that would use both environment and scons (not make) command line to override several variables that users may want to override, in particular CXX and installDir. I cannot believe I'll need any non-trivial coding to do something as common as this. diff --git a/SConstruct b/SConstruct index b0b5d0f..8ed151b 100644 --- a/SConstruct +++ b/SConstruct @@ -27,7 +27,7 @@ env['ENV']['HOME'] = os.environ['HOME'] installDir = env['HOME']+'/bin' -env.Append( CCFLAGS = ['-O2', '-Wall' ,'-Wno-non-virtual-dtor'] ) +env.Append( CCFLAGS = os.environ.get('CCFLAGS', ['-O2', '-Wall', '-Wno-non-virtual-dtor']) ) ## Uncomment the following if you need threading support threading env.Append( CPPFLAGS = ['-DQT_THREAD_SUPPORT', '-D_REENTRANT', '-I/usr/include/qt3'] ) -- Regards, Pavel Roskin