summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2018-01-05 20:37:18 +0100
committerRémi Verschelde <rverschelde@gmail.com>2018-01-05 20:37:45 +0100
commitdb49f35ab8d2bbcf5b97a58b8a2eff064b942881 (patch)
tree49ad34615e0c7ae865285ee9c0f513431dcea872 /platform/x11
parent380ee87e800e44b5e930d784dfb8aeadddf637f3 (diff)
SCons: Fix usage of LD when we meant LINK
Also made LINK and CXXFLAGS configurable as command line options. Note that LINK currently expects the *compiler* that will be used for linking and will call its configured linker behind the scenes (so g++, clang++, etc., not ld.gold). See #15364 for details.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/detect.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/detect.py b/platform/x11/detect.py
index cb45fed1be..478b42f9f7 100644
--- a/platform/x11/detect.py
+++ b/platform/x11/detect.py
@@ -109,7 +109,7 @@ def configure(env):
if ('clang++' not in env['CXX']):
env["CC"] = "clang"
env["CXX"] = "clang++"
- env["LD"] = "clang++"
+ env["LINK"] = "clang++"
env.Append(CPPFLAGS=['-DTYPED_METHOD_BIND'])
env.extra_suffix = ".llvm" + env.extra_suffix