فهرست منبع

[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"