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>
Merge "Fix PIC default to be -fPIC"
am 6ff84956: Merge "Fix PIC default to be -fPIC"

* commit '6ff849568c94c53c8a722f71f33c1e688ebbed74':
  Fix PIC default to be -fPIC
am 1b1840cb: am af95db03: Merge "ADBS now uses stack_core code to parse traces."

* commit '1b1840cbef77f2abfe95af56bc927c647a693429':
  ADBS now uses stack_core code to parse traces.
Fix Java detection on some Linux distributions

On some Linux distributions (spotted here on OpenMandriva Lx, but I'm
pretty sure some others do the same thing), "which javac" returns
/usr/bin/javac, which is a symlink to "../../etc/alternatives/javac",
which in turn points at whatever the JDK the user picked as his default.

Given "../../etc/alternatives/javac" is a relative, symlink, the next
iteration of LSLINE=$(ls -l "$JAVAC") fails (no
../../etc/alternatives/java relative to the build directory), causing
tools.jar not to be found.

Using readlink -f should work in all cases (while also simplifying the
script a bit).

Change-Id: I96afcf8e6460861bf8bb849dae05c27c42b91e84
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Remove bcc from generic_no_telephony.mk.

bcc was added into core_minimal.mk.

Change-Id: I29fa6eb3df0dada609e2f6b3e28ffd08d13c6afc
Merge "Remove bcc from generic_no_telephony.mk."
Add bcc into /system/bin.

Bug: 16161758
Change-Id: I492f6780ecf7d18f291532fc934a80ff7ac643cf
Merge "Add bcc into /system/bin."
Merge "Fix Java detection on some Linux distributions"
am ce40d5f9: am bc7501e1: Merge "More consistent use of 64-bit build variable."

* commit 'ce40d5f99e9c0658aab9539bf8afa253dfd985e4':
  More consistent use of 64-bit build variable.
am 8a749606: am 02a5b517: Merge "Make dex2oat heap size product configurable [build]"

* commit '8a7496060df85c241b976d6cd69b13828e452ef9':
  Make dex2oat heap size product configurable [build]
am f27e3fb4: am c35cc93d: Merge "Allow symlinks to device or vendor tree in envsetup.sh."

* commit 'f27e3fb4cf1d51f3abd5261d5626997c71df22b7':
  Allow symlinks to device or vendor tree in envsetup.sh.
am bc3b9801: am c4954f39: Merge "Don\'t enable LOCAL_DEX_PREOPT for apks outside system.img"

* commit 'bc3b98012dc77474d146db7747c7f33c50fe31c0':
  Don't enable LOCAL_DEX_PREOPT for apks outside system.img
am 50fb938f: am ec5563b5: Merge "build: fix host dex2oat runtime args"

* commit '50fb938f79387ab92ed3b64194da47b146d74db6':
  build: fix host dex2oat runtime args
am 8689b90b: am 6ff84956: Merge "Fix PIC default to be -fPIC"

* commit '8689b90bcfdc92c94475901935b5f6efae0c9abc':
  Fix PIC default to be -fPIC
am fd5e704c: Merge "Add bcc into /system/bin."

* commit 'fd5e704c5683077e4c689d4a27769c034b48be7f':
  Add bcc into /system/bin.
am 60a0ba2b: Merge "Remove bcc from generic_no_telephony.mk."

* commit '60a0ba2b345720313d1beb0421db57ece75c063c':
  Remove bcc from generic_no_telephony.mk.
am 29f93270: am fd5e704c: Merge "Add bcc into /system/bin."

* commit '29f932706d39799a572544b1b26e7460b16040a3':
  Add bcc into /system/bin.