Home | History | Annotate | Download | only in warn-non-system-libs-in-linker-flags
      1 #!/bin/sh
      2 
      3 cd `dirname $0`
      4 BUILD_OUTPUT=$($NDK/ndk-build "$@" 2>&1)
      5 # Note: the build can fail because it is ill-specific, so don't panic
      6 #       and just look for the expected warning.
      7 printf "%s\n" "$BUILD_OUTPUT" | grep -q -e "WARNING:.*non-system libraries in linker flags: -lfoo"
      8 if [ $? != 0 ]; then
      9   echo "ERROR: Can't find warning about non-system libraries in linker flags:"
     10   printf "%s\n" "$BUILD_OUTPUT"
     11   exit 1
     12 fi
     13