1#!/bin/sh 2 3cd `dirname $0` 4BUILD_OUTPUT=$($NDK/ndk-build "$@" 2>&1) 5if [ $? != 0 ]; then 6 echo "ERROR: Can't build test library!" 7 printf "%s\n" "$BUILD_OUTPUT" 8 exit 1 9fi 10printf "%s\n" "$BUILD_OUTPUT" | grep -q -e "WARNING:.*LOCAL_LDFLAGS is always ignored for static libraries" 11if [ $? != 0 ]; then 12 echo "ERROR: Can't find LOCAL_LDFLAGS warning in static library build output:" 13 printf "%s\n" "$BUILD_OUTPUT" 14 exit 1 15fi 16