summaryrefslogtreecommitdiff
path: root/games/netpanzer/files/patch-SConstruct
diff options
context:
space:
mode:
Diffstat (limited to 'games/netpanzer/files/patch-SConstruct')
-rw-r--r--games/netpanzer/files/patch-SConstruct19
1 files changed, 19 insertions, 0 deletions
diff --git a/games/netpanzer/files/patch-SConstruct b/games/netpanzer/files/patch-SConstruct
new file mode 100644
index 000000000000..a4bf784e5ad8
--- /dev/null
+++ b/games/netpanzer/files/patch-SConstruct
@@ -0,0 +1,19 @@
+--- SConstruct.orig 2016-04-09 13:14:00 UTC
++++ SConstruct
+@@ -95,7 +95,7 @@ opts.AddVariables(
+ ('compilerprefix', 'sets the prefix for the cross linux compiler, example: i686-pc-linux-gnu-', ''),
+ )
+
+-env = Environment(ENV = os.environ, options = opts)
++env = Environment(ENV = os.environ, options = opts, CC = os.environ['CC'], CXX = os.environ['CXX'])
+ Help(opts.GenerateHelpText(env))
+
+ env.Append( CCFLAGS = [ '-DPACKAGE_VERSION=\\"' + NPVERSION + '\\"' ] )
+@@ -202,6 +202,7 @@ elif thisplatform == 'win32':
+ else:
+ networkenv.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
+ env.ParseConfig(env['sdlconfig'] + ' --cflags --libs')
++ env.Append( _LIBFLAGS = [ '-L%%LOCALBASE%%/lib' ] )
+ # note: for some magic reason, now doesn't need to put the full path for
+ # SDL_mixer when using mingw crosscompilation
+ env.Append( LIBS = ['SDL_mixer' ] )