scons: use --Wl,as-needed ld flags

This commit is contained in:
punkrockguy318 2012-06-24 15:40:40 +00:00
parent 1b0b3df707
commit 3b3e74457b
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ else:
env.Append(CCFLAGS = ["-DLUA_USE_LINUX"])
if conf.CheckLib('lua'):
env.Append(LINKFLAGS = ["-ldl", "-llua"])
env.Append(LINKFLAGS=['-Wl,--as-needed'])
### Search for gd if we're not in Windows
if env['PLATFORM'] != 'win32' and env['PLATFORM'] != 'cygwin' and env['CREATE_AVI'] and env['LOGO']: