summaryrefslogtreecommitdiff
path: root/Externals/Lua/SConscript
diff options
context:
space:
mode:
authorSoren Jorvang <soren.jorvang@gmail.com>2010-07-10 21:17:08 +0000
committerSoren Jorvang <soren.jorvang@gmail.com>2010-07-10 21:17:08 +0000
commitaddb89fecca1630e47433aacb0ef953602a56927 (patch)
treeb3eefdbea9972a01de0b1e598694d2b230f613fa /Externals/Lua/SConscript
parent379706b25ad952749d400da2bd45b0b4b370e259 (diff)
Allow full-length Unix pathnames.
Move bits of HAVE_OPENCL/HAVE_WX for OS X from SConstruct to header files. Use /usr/lib/libz on OS X now that we no longer have -L/opt/local/lib in the library path. It is still possible that we could pick up a libz in /usr/local/lib that would make the application non-redistributable, but the danger is much less than previously. Also bits of minor portability cleanup. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5868 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Externals/Lua/SConscript')
-rw-r--r--Externals/Lua/SConscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/Externals/Lua/SConscript b/Externals/Lua/SConscript
index da5eaf654f..520ed8b17b 100644
--- a/Externals/Lua/SConscript
+++ b/Externals/Lua/SConscript
@@ -1,7 +1,13 @@
# -*- python -*-
+import sys
Import('env')
+luaenv = env.Clone()
+
+if not sys.platform == 'win32':
+ luaenv['CPPDEFINES'].append('LUA_USE_LINUX') # Also works for OS X
+
files = [
'lapi.c',
'lauxlib.c',
@@ -35,4 +41,4 @@ files = [
'print.c',
]
-env.StaticLibrary(env['local_libs'] + "lua", files)
+luaenv.StaticLibrary(env['local_libs'] + "lua", files)