summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAstrozen <[email protected]>2024-05-21 08:58:26 +0800
committerGitHub <[email protected]>2024-05-21 08:58:26 +0800
commitce913b95c779bf7422a9b0676e18f4608c17d47d (patch)
treed08c6353cb54f5dbbae9d9d0921a8073a67eb868
parente82c53559b6e16acb5bdc9c9c9d51c8ddf84a86d (diff)
[tools/cmake] fix the issue of the missing link flags added in Sconscript (#8957)
-rw-r--r--tools/cmake.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/cmake.py b/tools/cmake.py
index d938f9c787..bf231d3436 100644
--- a/tools/cmake.py
+++ b/tools/cmake.py
@@ -38,7 +38,7 @@ def GenerateCFiles(env,project):
else:
CXXFLAGS = CFLAGS
AFLAGS = rtconfig.AFLAGS.replace('\\', "/").replace('\"', "\\\"")
- LFLAGS = rtconfig.LFLAGS.replace('\\', "/").replace('\"', "\\\"")
+ LFLAGS = env['LINKFLAGS'].replace('\\', "/").replace('\"', "\\\"")
if "win32" in sys.platform:
CC += ".exe"