Browse Source

makepanda: Fix compiling for older NDKs with armv7a

rdb 4 years ago
parent
commit
c7cccd4791
2 changed files with 3 additions and 5 deletions
  1. 0 2
      makepanda/makepanda.py
  2. 3 3
      makepanda/makepandacore.py

+ 0 - 2
makepanda/makepanda.py

@@ -1325,10 +1325,8 @@ def CompileCxx(obj,src,opts):
             cmd += ' -target ' + SDK["ANDROID_TRIPLE"]
             if arch == 'armv7a':
                 cmd += ' -march=armv7-a -mfloat-abi=softfp -mfpu=vfpv3-d16'
-                cmd += ' -fno-integrated-as'
             elif arch == 'arm':
                 cmd += ' -march=armv5te -mtune=xscale -msoft-float'
-                cmd += ' -fno-integrated-as'
             elif arch == 'mips':
                 cmd += ' -mips32'
             elif arch == 'mips64':

+ 3 - 3
makepanda/makepandacore.py

@@ -411,7 +411,7 @@ def SetTarget(target, arch=None):
         global ANDROID_ABI, ANDROID_TRIPLE
         if arch == 'armv7a':
             ANDROID_ABI = 'armeabi-v7a'
-            ANDROID_TRIPLE = 'arm-linux-androideabi'
+            ANDROID_TRIPLE = 'armv7a-linux-androideabi'
         elif arch == 'arm':
             ANDROID_ABI = 'armeabi'
             ANDROID_TRIPLE = 'arm-linux-androideabi'
@@ -2549,8 +2549,8 @@ def SdkLocateAndroid():
 
     # The Android support library polyfills C++ features not available in the
     # STL that ships with Android.
-    support = os.path.join(ndk_root, 'sources', 'android', 'support', 'include')
-    IncDirectory("ALWAYS", support.replace('\\', '/'))
+    #support = os.path.join(ndk_root, 'sources', 'android', 'support', 'include')
+    #IncDirectory("ALWAYS", support.replace('\\', '/'))
     if api < 21:
         LibName("ALWAYS", "-landroid_support")