git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] qgit: allow overriding CCFLAGS
@ 2005-12-23 23:23 Pavel Roskin
  2005-12-23 23:29 ` Fernando J. Pereda
  2005-12-24  6:17 ` Marco Costalba
  0 siblings, 2 replies; 4+ messages in thread
From: Pavel Roskin @ 2005-12-23 23:23 UTC (permalink / raw)
  To: Marco Costalba; +Cc: git

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

^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2005-12-24  8:14 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-12-23 23:23 [PATCH] qgit: allow overriding CCFLAGS Pavel Roskin
2005-12-23 23:29 ` Fernando J. Pereda
2005-12-24  6:17 ` Marco Costalba
2005-12-24  8:14   ` Junio C Hamano

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).