Automatically generate build/link commands.

Use LOCAL_CXX with a dummy compiler to determine the build/link flags
the build system will use to build a typical Android executable. This
both prevents test failures when the build system simply goes out of
sync with the old, hard coded flags, and helps us catch new failures
introduced by build system changes ASAP.

Change-Id: I9a867ab49b7f2158070cf944c7a96084089a3718
6 files changed