diff options
Diffstat (limited to 'games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch')
-rw-r--r-- | games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch new file mode 100644 index 000000000000..cea3a5a451af --- /dev/null +++ b/games-board/pouetchess/files/pouetchess-0.2.0-sconstruct-sandbox.patch @@ -0,0 +1,29 @@ +--- SConstruct ++++ SConstruct +@@ -22,14 +22,24 @@ + + + +-import os,glob ++import os,glob,SCons.Util + + ++# http://dev.gentoo.org/~vapier/scons-blows.txt + + # create build environment + ++env = Environment() ++env.SConsignFile() + env = Environment(tools = ['default', 'pouetChess'], toolpath = ['.']) +-env.AppendUnique(CXXFLAGS = ['-Wall']) ++env['CC'] = os.environ['CC'] ++env['CXX'] = os.environ['CXX'] ++if os.environ.has_key('CFLAGS'): ++ env['CCFLAGS'] = SCons.Util.CLVar(os.environ['CFLAGS']) ++if os.environ.has_key('CXXFLAGS'): ++ env['CXXFLAGS'] = SCons.Util.CLVar(os.environ['CXXFLAGS']) ++if os.environ.has_key('LDFLAGS'): ++ env['LINKFLAGS'] = SCons.Util.CLVar(os.environ['LDFLAGS']) + + # gather a list of source files + SOURCES = glob.glob('src/*.cpp') |