summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Heaven <nyhm@gentoo.org>2010-05-01 21:16:34 +0000
committerTristan Heaven <nyhm@gentoo.org>2010-05-01 21:16:34 +0000
commit5398914cba1f9c9cbf12bba210851101145ea597 (patch)
treea7443468260c243a859501859f3b2d04a0321e7c /games-util/xboxdrv/files
parentVersion bump. (diff)
downloadgentoo-2-5398914cba1f9c9cbf12bba210851101145ea597.tar.gz
gentoo-2-5398914cba1f9c9cbf12bba210851101145ea597.tar.bz2
gentoo-2-5398914cba1f9c9cbf12bba210851101145ea597.zip
Version bump
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'games-util/xboxdrv/files')
-rw-r--r--games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch b/games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch
new file mode 100644
index 000000000000..96477c6fce3a
--- /dev/null
+++ b/games-util/xboxdrv/files/xboxdrv-0.4.11-build.patch
@@ -0,0 +1,30 @@
+--- SConstruct
++++ SConstruct
+@@ -1,8 +1,7 @@
+ # -*- python -*-
+
+-if True:
++if False:
+ env = Environment(CPPFLAGS=['-g', '-O2', '-Wall', '-ansi', '-pedantic'])
+-else:
+ env = Environment(CXXFLAGS= [ "-O3", "-g3",
+ "-ansi",
+ "-pedantic",
+@@ -18,6 +17,17 @@
+ "-Winit-self", # only works with >= -O1
+ "-Wno-unused-parameter",
+ ])
++import os
++import SCons.Util
++
++env = Environment(CPPFLAGS=['-Wall', '-ansi', '-pedantic'])
++if os.environ.has_key('CXX'):
++ env['CXX'] = os.environ['CXX']
++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'])
++
+ conf = Configure(env)
+
+ if not conf.env['CXX']: