Configure lua for target platform, fixes linker warning about tmpnam

git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4581 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
bztdlinux 2009-11-15 21:25:44 +00:00
parent f992fc6949
commit d28a1e06f5
2 changed files with 13 additions and 1 deletions

View File

@ -10,7 +10,7 @@
#include <limits.h>
#include <stddef.h>
#include "../../Source/Core/Common/Src/Config.h"
/*
** ==================================================================

View File

@ -335,6 +335,18 @@ conf.Define('HAVE_COCOA', env['HAVE_COCOA'])
conf.Define('HAVE_PORTAUDIO', env['HAVE_PORTAUDIO'])
conf.Define('HAVE_SFML', env['HAVE_SFML'])
# lua
env['LUA_USE_MACOSX'] = 0
env['LUA_USE_LINUX'] = 0
env['LUA_USE_POSIX'] = 0
if sys.platform == 'darwin':
env['LUA_USE_MACOSX'] = 1
elif sys.platform == 'linux2':
env['LUA_USE_LINUX'] = 1
conf.Define('LUA_USE_MACOSX', env['LUA_USE_MACOSX'])
conf.Define('LUA_USE_LINUX', env['LUA_USE_LINUX'])
# profile
env['USE_OPROFILE'] = 0
if (flavour == 'prof'):