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() { |