scons: dont pass -llua to linker if lua cannot be found
This commit is contained in:
parent
1d664128d4
commit
54fc74b0d8
|
@ -98,6 +98,7 @@ else:
|
|||
# If we're POSIX, we use LUA_USE_LINUX since that combines usual lua posix defines with dlfcn calls for dynamic library loading.
|
||||
# Should work on any *nix
|
||||
env.Append(CCFLAGS = ["-DLUA_USE_LINUX"])
|
||||
if conf.CheckLib('lua'):
|
||||
env.Append(LINKFLAGS = ["-ldl", "-llua"])
|
||||
|
||||
### Search for gd if we're not in Windows
|
||||
|
|
Loading…
Reference in New Issue