Enable hardware float for all armv7 and add NDK required linker flags
authordjsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 Feb 2012 14:09:02 +0000 (14:09 +0000)
committerdjsollen@google.com <djsollen@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>
Fri, 24 Feb 2012 14:09:02 +0000 (14:09 +0000)
git-svn-id: http://skia.googlecode.com/svn/trunk@3247 2bbb7eff-a529-9590-31e7-b0007b416f81

gyp/common_conditions.gypi

index faa48fb..f119f28 100644 (file)
           '-fno-rtti',
         ],
         'conditions': [
+          [ 'skia_target_arch == "arm", {
+            'ldflags': [
+              '-Wl',
+              '--fix-cortex-a8',
+            ],
+          }],
           [ 'skia_target_arch == "arm" and arm_thumb == 1', {
             'cflags': [
               '-mthumb',
             ],
             'cflags': [
               '-march=armv7-a',
+              '-mfloat-abi=softfp',
             ],
             'conditions': [
               [ 'arm_neon == 1', {
                   '__ARM_HAVE_NEON',
                 ],
                 'cflags': [
-                  '-mfloat-abi=softfp',
                   '-mfpu=neon',
                 ],
              }],