Remove -Bsymbolic from builds.

This is causing issues when tools like asan try to wrap calls like
malloc. See the referenced bug for more details.

Bug: 15432753
Change-Id: I15e8eab5b773afd02dc14c78500cf8246a617718
Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to clang.

This is essentially Ide800c24f0c2ebbb1cfb358bd8f99ec8a9d41253
applied to clang.

Change-Id: I883f9e9a31fff50a64568a06ef5248437344542b
Fix PIC default to be -fPIC

-fPIC is more restrictive than -fPIE, but when "-fPIC -fPIE" used together
the latter overrides. It may lead to issues when building DSO where
-fPIC and not -fPIE is required.

For executables -fPIE -pie shoudld be added and it's fine to override
-fPIC as it is done now.

The reason why we don't have these issues so far is probably related to
-Bsymbolic added by default. But any attempt to remove it reveals these
problems:
https://android-review.googlesource.com/#/c/98061/

Change-Id: If0f10628b7cc41e564221a7a37298f7d65f859a8
Signed-off-by: Pavel Chupin <pavel.v.chupin@intel.com>
Clean the last bit of LOCAL_BUILD_HOST_DEX.

Long live LOCAL_BUILD_HOST_DEX!

Change-Id: I8de23cfc78edc554606a2e1a8a955e8bc3ad02b0
Merge "Clean the last bit of LOCAL_BUILD_HOST_DEX."
Fix host java doc by referring to the correct classpath.

In droiddoc for host, we don't generate classes.jar for
LOCAL_JAVA_LIBRARIES. Switch to refer to the installed jar file instead.
This is consistent with how LOCAL_JAVA_LIBRARIES for host is handled in
base_rules.mk.

Bug: 9176318
Change-Id: If7460b30ca5da28743487d66da0029a44108d556
Merge "Fix host java doc by referring to the correct classpath."
ADBS now uses stack_core code to parse traces.

Change-Id: Ic1d822e2599fb0ad54dbe20d54e1dd6e3eaf18d6
Merge "Remove -Bsymbolic from builds."
Merge "ADBS now uses stack_core code to parse traces."
Make dex2oat heap size product configurable [build]

Bug: 15919420
Change-Id: If92318a6e3d5b9c8c6a2d08a3371386fa5ad8f45
More consistent use of 64-bit build variable.

Set up TARGET_IS_64_BIT and HOST_IS_64_BIT early so we don't need 2
mechanisms to judge if it's 64-bit build;
Remove the unnecessary 32-bit host variables.

Change-Id: I08d6d4d9ea70f91135fe2ee05463fb9a0d1cee42
Merge "More consistent use of 64-bit build variable."
Merge "Make dex2oat heap size product configurable [build]"
Don't enable LOCAL_DEX_PREOPT for apks outside system.img

Bug: 15621103
Change-Id: If267a4aaad17b66d9779169237e06d65d67f088f
Allow symlinks to device or vendor tree in envsetup.sh.

Change-Id: I1190a0b1c84fa17b3692427eb6071ffbe84bc529
Merge "Allow symlinks to device or vendor tree in envsetup.sh."
Merge "Don't enable LOCAL_DEX_PREOPT for apks outside system.img"
build: fix host dex2oat runtime args

The dalvik.vm.* properties are in PRODUCT_DEFAULT_PROPERTY_OVERRIDES,
not PRODUCT_PROPERTY_OVERRIDES.
Use $(call func,args) for user defined functions
Prepend the property contents with -Xms or -Xmx when passing to
dex2oat.  This only worked before because DEX2OAT_XMS, etc. were blank
due to the first two  bugs, which resulted in --runtime-arg --runtime-arg
and anything starting with -- as the argument to --runtime-arg is
silently ignored.

Change-Id: Ifa30038b397355171fefcc5248eea033bb634036
Merge "build: fix host dex2oat runtime args"