Switch compiler_rt libraries to be built with NDK API 19/21.

Test: Built entire device and ran RS CTS tests (to exercise dynamic
compiler_rt behaviors).

Previously, the static libraries here were being built directly against
the platform headers/libraries. This causes problems when one wants to
link the latest libcompiler_rt.a from another NDK app, since it might
introduce an unexpected dependency on unexposed APIs. By building with
the NDK level 19 headers, we can enable other targets to safely depend
on the various libcompiler_rt static libraries (such as the RenderScript
LLDB tests). The final object must use API level 21, or we have missing
definitions for some the FORTIFY APIs.

Change-Id: I04ab3cb96e8eec54c2c3b7f9f0ea7d906af1d82c
3 files changed