From 3b3e74457b7a5c1f9439962e7f76043bd65dc354 Mon Sep 17 00:00:00 2001 From: punkrockguy318 Date: Sun, 24 Jun 2012 15:40:40 +0000 Subject: [PATCH] scons: use --Wl,as-needed ld flags --- SConstruct | 1 + 1 file changed, 1 insertion(+) diff --git a/SConstruct b/SConstruct index 7dbe43a7..4367d73c 100644 --- a/SConstruct +++ b/SConstruct @@ -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']: