Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1196)

Unified Diff: ports/libyuv/build.sh

Issue 730193002: Fix more compile failures caused by recent ARM toolchain upgrade. (Closed) Base URL: https://chromium.googlesource.com/external/naclports.git@master
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ports/libtommath/build.sh ('k') | ports/physfs/build.sh » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ports/libyuv/build.sh
diff --git a/ports/libyuv/build.sh b/ports/libyuv/build.sh
index 1a18597bceb0b697eaedbbd35044c37b7b1a19db..bcea9c0a06a533f3de3a2a7dfa660f4385318d9c 100644
--- a/ports/libyuv/build.sh
+++ b/ports/libyuv/build.sh
@@ -2,6 +2,17 @@
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
+# Workaround for arm-gcc bug:
+# https://code.google.com/p/nativeclient/issues/detail?id=3205
+# TODO(sbc): remove this once the issue is fixed
+if [ "${NACL_ARCH}" = "arm" ]; then
+ NACLPORTS_CPPFLAGS+=" -mfpu=vfp"
+fi
+
+if [ "${NACL_LIBC}" = "newlib" ]; then
+ NACLPORTS_CPPFLAGS+=" -I${NACLPORTS_INCLUDE}/glibc-compat"
+fi
+
EXECUTABLES="convert libyuv_unittest"
TestStep() {
« no previous file with comments | « ports/libtommath/build.sh ('k') | ports/physfs/build.sh » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698