git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] qgit: allow overriding CCFLAGS

From
PRPavel Roskin <proski@gnu.org>
Date
Dec 23, 2005, 23:23 UTC
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 <proski@gnu.org>

--- 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
Next: Fernando J. Pereda
Message 1 of 4 in “qgit: allow overriding CCFLAGS”
  1. qgit: allow overriding CCFLAGSPavel Roskin, Dec 23, 2005
  2. Fernando J. PeredaDec 23, 2005
  3. Marco CostalbaDec 24, 2005
  4. Junio C HamanoDec 24, 2005

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.