From ae7c5ffc78ee80686b1e3f459621a113bbe339de Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Mon, 8 Jul 2013 23:05:36 +0000 Subject: [PATCH] sdl: use system lua patch (part 2; missed file in previous commit) --- trunk/SConstruct | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/trunk/SConstruct b/trunk/SConstruct index 95517323..afb9795d 100644 --- a/trunk/SConstruct +++ b/trunk/SConstruct @@ -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!'