Revision: 699
http://python-ogre.svn.sourceforge.net/python-ogre/?rev=699&view=rev
Author: mithro
Date: 2008-08-18 09:13:15 +0000 (Mon, 18 Aug 2008)
Log Message:
-----------
Prevent stripping of binaries on debug builds.
Modified Paths:
--------------
trunk/python-ogre/SConstruct
Modified: trunk/python-ogre/SConstruct
===================================================================
--- trunk/python-ogre/SConstruct 2008-08-18 09:03:58 UTC (rev 698)
+++ trunk/python-ogre/SConstruct 2008-08-18 09:13:15 UTC (rev 699)
@@ -95,7 +95,7 @@
#LINKFLAGS = " /NOLOGO /INCREMENTAL:NO /DLL /subsystem:console " ### LONG Link , 80 minutes - 15.7 meg
if environment.isLinux():
if os.sys.platform <> 'darwin':
- LINKFLAGS = ' `pkg-config --libs OGRE` --strip-all -lstdc++ '
+ LINKFLAGS = ' `pkg-config --libs OGRE` -lstdc++ '
if environment.isMac():
LINKFLAGS = ' -Wl,-x -framework Python -framework Ogre -framework Carbon -F' + environment.Config.FRAMEWORK_DIR + ' '
return LINKFLAGS
@@ -175,6 +175,9 @@
if hasattr( cls, 'CCFLAGS'):
ccflags += cls.CCFLAGS
_env.Append ( CCFLAGS=ccflags )
+ ## Use any extra stuff passed in th environment
+ if 'CCFLAGS' in os.environ:
+ _env.Append( CCFLAGS=os.environ['CCFLAGS'] )
if hasattr( cls, 'pchbuild' ) and hasattr( cls, 'pchstop' ):
usepch = True
@@ -207,7 +210,7 @@
## and lets have it install the output into the 'package_dir_name/ModuleName' dir and rename to the PydName
_env.AddPostAction(package,\
'mt.exe -nologo -manifest %(name)s.manifest -outputresource:%(name)s;2' % { 'name':package[index] } )
- if environment.isLinux():
+ if environment.isLinux() and "-g" not in _env["CCFLAGS"]:
_env.AddPostAction(package,\
'-strip -g -S -d --strip-debug -s %(name)s' % { 'name':package[index] } )
if environment.isMac():
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|