Build rule updates for aosp

Various build rule changes to match AOSP:
Add libunwind_llvm and libdl as dependencies for libc++ on device
Always add libcompiler_rt-extras as a dependency
Add libm, libc, and libdl as depnendencies for libc++ static binaries
Disable some clang warnings, and add some clang filtered cflags
Add -fstack-protector to host linux builds
Add jack_flags property to java modules (currently ignored)

Change-Id: Ic0da617bdeaf25f58cb8298dd9ea91b7d6509151
This commit is contained in:
Colin Cross
2015-04-28 13:30:13 -07:00
parent b05bff2f26
commit 74d1ec0c2c
5 changed files with 131 additions and 26 deletions

View File

@@ -18,9 +18,10 @@ var (
"-no-canonical-prefixes",
"-include ${SrcDir}/build/core/combo/include/arch/linux-x86/AndroidConfig.h",
// Disable new longjmp in glibc 2.11 and later. See bug 2967937. Same for 2.15?
// TODO: Set _FORTIFY_SOURCE=2. Bug 20558757.
"-U_FORTIFY_SOURCE",
"-D_FORTIFY_SOURCE=0",
"-fstack-protector",
// Workaround differences in inttypes.h between host and target.
//See bug 12708004.