sdl: use system lua patch (part 2; missed file in previous commit)
This commit is contained in:
parent
97295e18c4
commit
ae7c5ffc78
|
@ -44,7 +44,7 @@ if platform.system == "ppc":
|
|||
env['LSB_FIRST'] = 0
|
||||
|
||||
# Default compiler flags:
|
||||
env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare', '-Isrc/lua/src'])
|
||||
env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare'])
|
||||
|
||||
if os.environ.has_key('PLATFORM'):
|
||||
env.Replace(PLATFORM = os.environ['PLATFORM'])
|
||||
|
@ -140,9 +140,11 @@ else:
|
|||
lua_available = False
|
||||
if conf.CheckLib('lua5.1'):
|
||||
env.Append(LINKFLAGS = ["-ldl", "-llua5.1"])
|
||||
env.Append(CCFLAGS = ["-I/usr/include/lua5.1"])
|
||||
lua_available = True
|
||||
elif conf.CheckLib('lua'):
|
||||
env.Append(LINKFLAGS = ["-ldl", "-llua"])
|
||||
env.Append(CCFLAGS = ["-I/usr/include/lua"])
|
||||
lua_available = True
|
||||
if lua_available == False:
|
||||
print 'Could not find liblua, exiting!'
|
||||
|
|
Loading…
Reference in New Issue