From 5507db111fceb9831879fd1efabbbe82266aa0dc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Remko=20Tron=C3=A7on?= Date: Sun, 24 Oct 2010 21:18:21 +0200 Subject: Added 'link' flag to SConstruct. diff --git a/BuildTools/SCons/SConstruct b/BuildTools/SCons/SConstruct index 4723755..8ff4f0a 100644 --- a/BuildTools/SCons/SConstruct +++ b/BuildTools/SCons/SConstruct @@ -10,6 +10,7 @@ vars = Variables(os.path.join(Dir("#").abspath, "config.py")) vars.Add('cc', "C compiler") vars.Add('cxx', "C++ compiler") vars.Add('ccflags', "Extra C(++) compiler flags") +vars.Add('link', "Linker") vars.Add('linkflags', "Extra linker flags") vars.Add(BoolVariable("ccache", "Use CCache", "no")) vars.Add(BoolVariable("distcc", "Use DistCC", "no")) @@ -99,6 +100,9 @@ if "cc" in env : if "cxx" in env : env["CXX"] = env["cxx"] env["CCFLAGS"] = env.get("ccflags", []) +if "link" in env : + env["SHLINK"] = env["link"] + env["LINK"] = env["link"] env["LINKFLAGS"] = env.get("linkflags", []) # This isn't a real flag (yet) AFAIK. Be sure to append it to the CXXFLAGS # where you need it -- cgit v0.10.2-6-g49f6