platform_build/core/combo
Dan Albert 908ab54fda Fix uses of -fPIC and -fPIE.
We've been using -fPIC and -fPIE together in the global cflags all this
time. These options are incompatible. The only reason we haven't been
hit by this before is because of the forced -Bsymbolic in GCC. To fix
this, pass -fpic when compiling objects for shared libraries and -fpie
when compiling objects for executables. For static libraries, also use
-fpic. We have to do this because static libraries might be included in
either a shared library or an executable. Code compiled with -fpie
cannot be included in a shared library, but code compiled with -fpic
may be included in an executable.

We've also been using -fpic and -fPIC together. These are different
options, and only the latter will take effect.
http://stackoverflow.com/a/967010

The final thing this fixes is that we had -f(PIC|PIE) flags being passed
to link commands. These are compile time flags, and don't do anything at
link time.

Bug: 16823325
Change-Id: Ic76f47e63dc2c81b7e1a8058bae1b3dc8565d606
(cherry picked from commit 4803ce2696)
2014-08-08 08:15:14 -07:00
..
arch [MIPSR6] Add mips64r6 and mips32r6 targets 2014-08-05 12:39:28 -07:00
include/arch resolved conflicts for merge of 53caaaf6 to master 2014-06-16 15:34:25 -07:00
HOST_darwin-x86.mk Fix the missing 2nd arch prefix. 2014-05-16 16:22:32 -07:00
HOST_darwin-x86_64.mk More consistent use of 64-bit build variable. 2014-07-08 18:04:17 -07:00
HOST_linux-x86.mk Default to "prescott" as our baseline i686 host build architecture. 2014-07-25 00:42:14 -07:00
HOST_linux-x86_64.mk More consistent use of 64-bit build variable. 2014-07-08 18:04:17 -07:00
HOST_windows-x86.mk Support host multilib build 2014-05-14 16:55:04 -07:00
HOST_windows-x86_64.mk More consistent use of 64-bit build variable. 2014-07-08 18:04:17 -07:00
TARGET_linux-arm.mk Fix uses of -fPIC and -fPIE. 2014-08-08 08:15:14 -07:00
TARGET_linux-arm64.mk Fix uses of -fPIC and -fPIE. 2014-08-08 08:15:14 -07:00
TARGET_linux-mips.mk Fix uses of -fPIC and -fPIE. 2014-08-08 08:15:14 -07:00
TARGET_linux-mips64.mk Fix uses of -fPIC and -fPIE. 2014-08-08 08:15:14 -07:00
TARGET_linux-x86.mk Fix uses of -fPIC and -fPIE. 2014-08-08 08:15:14 -07:00
TARGET_linux-x86_64.mk Fix uses of -fPIC and -fPIE. 2014-08-08 08:15:14 -07:00
fdo.mk Change profile use path to the newly created project. 2014-08-05 15:32:41 -07:00
javac.mk Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to the compiler. 2014-06-03 12:24:22 +01:00
mac_version.mk Support host multilib build 2014-05-14 16:55:04 -07:00
select.mk Revert "Revert "Introduce CC/CXX/JAVAC_WRAPPER to wrap the calls to clang."" 2014-07-30 10:14:37 -07:00