x86: enable FORTIFY_SOURCE

Enable FORTIFY_SOURCE for Android x86.  This adds certain security
protections to Android programs, checking for common programming
mistakes and buffer overflows.

FORTIFY_SOURCE protections have been enabled for ARM since
a46c480e43cc61d0190569684f0a1e53a5da75b6 (Jun 4th 2012)

Change-Id: Idae6f93d37ddae605088867cd3029f12632456e1
Remove AOSP LatinIME add Email and Exchange
Remove libjni_latinime for now until we need it again
Don't build Pinyin And Openwnn IME
build: Enable Bionic optimizations on Cortex platforms

 * Enable the new NEON optimizations in Bionic when
   TARGET_ARCH_VARIANT_CPU is set.
 * NEON memcpy() optimization is disabled on A15 due to a regression.

Change-Id: I4862695812a70b75bdabc4398cb592157f3913c6

Conflicts:
	core/combo/arch/arm/armv7-a.mk
build: move bionic optimizations to NEON makefile

Change-Id: Idd495ddbb49f67fef5496456803263f8a23643c5

Conflicts:
	core/combo/arch/arm/armv7-a-neon.mk
build: Relax Cortex CFLAGS

 * Always set march=armv7-a
 * Use mtune instead of mcpu. Bad code is generated on A15 otherwise.

Change-Id: Idf8ced8eb0e9d3d4676ca8ec69bf56aed5533bf4

Conflicts:
	core/combo/arch/arm/armv7-a.mk
Build fix

Change-Id: Idfdcbce3badea6c778249be6719cf88374effa6d
Gcc 4.7 as default
 build: Add support for TARGET_EXTRA_C{,PP}FLAGS

Add support for setting TARGET_EXTRA_C{,PP}FLAGS in board configs.
This can be used to set compiler flags for a board that break other
boards, such as -march=cortex-a9 or -DUSE_CUSTOM_EXTENSIONS_FOR_XYZ
build/core: Use better default compiler flags

Use -O3 for the compiler, -O2 for the linker

Change-Id: Ib9c3cd6d6ddf16c8bd20149a051ff2c17491a29d
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: Don't use -fno-strict-aliasing

Don't use -fno-strict-aliasing: It's no longer needed.

Change-Id: I7b6e9524197dc152b57a8d1900dd6d7f9fe3452d
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Don't add -fno-strict-aliasing to HOST compiler flags

Change-Id: I07eef86f11ec3761e0922855cb6ff881c2773966
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Explicitly disable -Werror=strict-alising for HOST builds

Change-Id: Ib1e834951196ab3ea6acbe47c27eebe5633f55d2
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: Build in ISOC++11 mode if possible

Add -std=gnu++11 if the compiler supports it

Change-Id: Ied8b4487263172b678fd2912cfe428187b2edf95
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build: Add option to disable strict-aliasing optimizations

This is useful for builds that pull in unmodified AOSP repositories
that can't be compiled with strict-aliasing compliance enabled

Change-Id: I0599127b1e113c0799dd8fa92db00b989ebc9bd3
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
build/core: Add option to disable C++11 bits

Change-Id: I45294e8c19bf7cdf200b45fbd114ccd75c4e3ca9
Signed-off-by: Bernhard Rosenkraenzer <Bernhard.Rosenkranzer@linaro.org>
Revert "build/core: Use better default compiler flags"

This reverts commit 9c83953aea1924516c7bbee9c8a481b4c334c0a8.

Conflicts:
	core/combo/select.mk
Option to use Linaro's compiler flags (see 9c83953)

To enable: export USE_LINARO_COMPILER_FLAGS=yes

Set LD flags to something safe by default.

Original commit: https://github.com/pbeeler/android_build/commit/f54beb181365ac0a1659e9404670789c3d81e578
dumpvar: Print custom build / optimizer options