Disable LTO on one target due to NEON issues with LTO.

BUG=chromium:408997
R=andrew@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/32519004

Patch from Fabrice de Gans-Riberi <fdegans@chromium.org>.

git-svn-id: http://webrtc.googlecode.com/svn/deps/third_party/openmax@7730 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/dl/dl.gyp b/dl/dl.gyp
index a4644f1..f389cb4 100644
--- a/dl/dl.gyp
+++ b/dl/dl.gyp
@@ -10,6 +10,7 @@
   'variables' : {
     # Override this value to build with small float FFT tables
     'big_float_fft%' : 1,
+    'use_lto%': 0,
   },
   'target_defaults': {
     'include_dirs': [
@@ -152,6 +153,16 @@
                 'sp/src/arm/neon/omxSP_FFTFwd_RToCCS_F32_Sfs_s.S',
                 'sp/src/arm/neon/omxSP_FFTInv_CCSToR_F32_Sfs_s.S',
               ],
+              'conditions': [
+                # Disable LTO due to Neon issues
+                # crbug.com/408997
+                ['use_lto==1', {
+                  'cflags!': [
+                    '-flto',
+                    '-ffat-lto-objects',
+                  ],
+                }],
+              ],
             }],
           ],
         }],