Exclude libstdc++ and libgcc if libc++ is requested.

Bug: 15174002
Change-Id: I24fe428c3520f76cd61f0660b59ba18a1f2d2dad
Fix for duplicate names in whole static libs

_extract-and-include-single-(host|target)-whole-static-lib was written such that
only the first file of a given name would be extracted and included into the new
library. This patch iterates over each identically named archive member,
extracts them individually, and adds them to the new archive.

Bug: 15110069
Change-Id: Ia08c7be6f40bfc8403908a8808898ada479099b1
Remove hardcoded TARGET_PREFER_32_BIT_APPS.

This isn't required any longer, besides individual products
should be allowed to set this value themselves.

(cherry picked from commit 7b9347a7f9d870e149ef38438ad547abe2709ee2)

Change-Id: If459eab32c6e7831596224ad3503baefbf028133
Switch x86_64 emulator to 64 bit primary.

Also siezes the opportunity to remove the hardcoded
TARGET_PREFER_32_BIT_APPS directing in core_64_bit.mk.
This avoids the need for further hacks but needs supporting
changes to a few apps to force them to 32 bit.

Change-Id: I36ba9e5f5b08dd87d6a4afc27961a436306eed99
Merge "Remove hardcoded TARGET_PREFER_32_BIT_APPS."
Merge "Switch x86_64 emulator to 64 bit primary."
Merge "Exclude libstdc++ and libgcc if libc++ is requested."
Merge "Fix for duplicate names in whole static libs"
Revert "Fix for duplicate names in whole static libs"

This reverts commit 0e5ce8be34446278a3404ea2a4afc01f20f86c5a.

Change-Id: I68b776cb915fd7be8299ddb2899907046dddadf3
Merge "Revert "Fix for duplicate names in whole static libs""
Fix all the system image sizes.

x86 just bit me. I did manage to build mips today, but I assume it
can't be long before we hit the limit there too if every other target
has hit it already.

Change-Id: I28dfe3b4f9565cb79e0bf6b0ffc55a9d6e64a9b0
Merge "Fix all the system image sizes."
auto-merger: merge in from aosp/master