Home | History | Annotate | Download | only in warn-no-ldflags-in-static-libraries
      1 #!/bin/sh
      2 
      3 cd `dirname $0`
      4 BUILD_OUTPUT=$($NDK/ndk-build "$@" 2>&1)
      5 if [ $? != 0 ]; then
      6     echo "ERROR: Can't build test library!"
      7     printf "%s\n" "$BUILD_OUTPUT"
      8     exit 1
      9 fi
     10 printf "%s\n" "$BUILD_OUTPUT" | grep -q -e "WARNING:.*LOCAL_LDFLAGS is always ignored for static libraries"
     11 if [ $? != 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
     15 fi
     16