Explorar o código

Android: Fix support for android_stl=no with NDK r20

Fixes #30688.
Rémi Verschelde %!s(int64=6) %!d(string=hai) anos
pai
achega
01e65c4555
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      platform/android/detect.py

+ 3 - 0
platform/android/detect.py

@@ -259,6 +259,9 @@ def configure(env):
                 env.Append(LINKFLAGS=[env["ANDROID_NDK_ROOT"] +"/sources/cxx-stl/llvm-libc++/libs/"+arch_subpath+"/libandroid_support.a"])
             env.Append(LIBPATH=[env["ANDROID_NDK_ROOT"] + "/sources/cxx-stl/llvm-libc++/libs/"+arch_subpath+"/"])
             env.Append(LINKFLAGS=[env["ANDROID_NDK_ROOT"] +"/sources/cxx-stl/llvm-libc++/libs/"+arch_subpath+"/libc++_shared.so"])
+        else:
+            # This is the legacy and minimal 'System STL' with support for basic features like new and delete
+            env.Append(LINKFLAGS=['-stdlib=libstdc++'])
     else:
         if mt_link:
             env.Append(LINKFLAGS=['-Wl,--threads'])