Преглед изворни кода

[tools/cmake] fix the issue of the missing link flags added in Sconscript (#8957)

Astrozen пре 11 месеци
родитељ
комит
ce913b95c7
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      tools/cmake.py

+ 1 - 1
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"