Allow LOCAL_LDFLAGS to override HOST_GLOBAL_LDFLAGS.

For host executables and shared libraries, the global LDFLAGS were being
inserted into the linker command line after the module-specific ones,
making it impossible to override the default settings. Change the order
to match target linker invocations.

Change-Id: Icd5f6f83df9f27a5be97ddb197ee245c1ab8c2be
Remove external/wpa_supplicant_8 and external/android-clat

from 64_bit_blacklist.mk.
They now build fine for 64-bit.

Change-Id: Ib73c8465b72cc7b40dae21441c3ea0bd25b7e6ba
Merge "Remove external/wpa_supplicant_8 and external/android-clat"
oprofile/daemon doesn't build for x86_64.

We'll probably remove external/oprofile soon, but this gets us closer
to being able to turn on an x86_64 continuous build in the meantime.

Change-Id: Ic1d5331d41dafee9ffed222dc332afed2d4ae356
Merge "oprofile/daemon doesn't build for x86_64."
Fix prebuilt library dependency for multilib build

Also we don't need to include module_arch_supported.mk again, if we are
currently substituting the source build with LOCAL_PREBUILT_MODULE_FILE.

Change-Id: I444b0397d74c3153b398a050b762e49418062a86
Merge "Fix prebuilt library dependency for multilib build"
Merge "Allow LOCAL_LDFLAGS to override HOST_GLOBAL_LDFLAGS."
Add policy for MIPS emulator, fix x86 policy.

The qemud and /dev/qemu_pipe policy bits copied to generic
and generic_x86 by I620d4aef84a5d4565abb1695db54ce1653612bce
are required for generic_mips as well.  In testing, we
further saw other denials for generic_mips that correspond
exactly to what is already allowed in the generic sepolicy, so
just inherit the sepolicy files from generic for now.
We could do likewise for the generic_x86 sepolicy for the files that are
identical with generic if desired, but that is not done by this change.

The generic_x86 sepolicy was missing a rule for /sys/qemu_trace
moved to the generic sepolicy by the prior change, so fix that omission.

The generic*64 variants will need something similar, either by inheriting
from one of the existing sepolicy directories as in the MIPS
case or by forking their own copies as in the x86 case.

Change-Id: Iec7c8825734a3f96f7db8ae1d10dce1f30b22bdf
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Include privileged apps with app zip file.

Include apps that appear under /system/priv-app
to also be included with the zip of all the apps.

Change-Id: If4687cf4c471877f11d78b68bad96f1842e49d87
Signed-off-by: rpcraig <rpcraig@tycho.ncsc.mil>
Conditionally include the 'samplecode' rules.

Not sure goal 'samplecode' is still used by anybody these days.

Change-Id: I808a021a6e4be6a97c4b5c256b94374c1b3dae47
Merge "Conditionally include the 'samplecode' rules."
Merge "Add policy for MIPS emulator, fix x86 policy."
Remove external/tcpdump from 64-bit build blacklist.

Change-Id: I40b0c71120a5548072ecb2e552bdbd8c14283097
Merge "Remove external/tcpdump from 64-bit build blacklist."
Merge "Include privileged apps with app zip file."
DO NOT MERGE: Fix aosp 64bit build. tcpdump+64bit=bad

This is until aosp gets the latest libpcap+tcpdump currently only on internal.

This reverts commit 5c68e265ac2bfeb881f9cc87c50f8b947ddbd86c.

Change-Id: If6a990c72cb3a8d699cf0881f7d5fb8b725fdf2e
Merge "DO NOT MERGE: Fix aosp 64bit build. tcpdump+64bit=bad"
Merge remote-tracking branch 'origin/master'