Index: build_tools/common.sh |
diff --git a/build_tools/common.sh b/build_tools/common.sh |
index c8cd452640a88c0fc37ef5637a526c1e45eb6dd8..310c5844e22d5ca876f2924e5de43b01e1fce4b9 100644 |
--- a/build_tools/common.sh |
+++ b/build_tools/common.sh |
@@ -66,7 +66,7 @@ NACLPORTS_LDFLAGS+=" -L${NACLPORTS_LIBDIR} -Wl,-rpath-link=${NACLPORTS_LIBDIR}" |
# The NaCl version of ARM gcc emits warnings about va_args that |
# are not particularly useful |
-if [ "${NACL_ARCH}" = "arm" ]; then |
+if [ "${NACL_ARCH}" = "arm" -a "${TOOLCHAIN}" = "newlib" ]; then |
NACLPORTS_CFLAGS="${NACLPORTS_CFLAGS} -Wno-psabi" |
NACLPORTS_CXXFLAGS="${NACLPORTS_CXXFLAGS} -Wno-psabi" |
fi |