Fixed an issue with linking process when `$LDSCRIPT` contains a space in path

This commit is contained in:
Ivan Kravets
2019-10-17 16:52:18 +03:00
parent 89843c0d65
commit 7bcfea13fb
3 changed files with 4 additions and 2 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ def BuildProgram(env):
# append into the beginning a main LD script
if env.get("LDSCRIPT_PATH") and not any("-Wl,-T" in f for f in env["LINKFLAGS"]):
env.Prepend(LINKFLAGS=["-T", "$LDSCRIPT_PATH"])
env.Prepend(LINKFLAGS=["-T", env["LDSCRIPT_PATH"]])
# enable "cyclic reference" for linker
if env.get("LIBS") and env.GetCompilerType() == "gcc":