mirror of
https://review.haiku-os.org/buildtools
synced 2026-02-04 07:53:14 +01:00
gcc: force -fPIC instead of -fpic by default on ppc
Works around "relocation truncated to fit: R_PPC_GOT16 against symbol" issue mentioned in #10240. PIC uses a larger GOT which doesn't overflow, unlike pic.
This commit is contained in:
@@ -54,3 +54,6 @@ Boston, MA 02111-1307, USA. */
|
||||
|
||||
#undef LINK_SPEC
|
||||
#define LINK_SPEC "%{!o*:-o %b} -m elf32ppchaiku %{!r:-shared} -no-undefined %{nostart:-e 0}"
|
||||
|
||||
#undef CC1_SPEC
|
||||
#define CC1_SPEC "%{!no-fpic:%{!fno-pic:%{!fno-pie:%{!fpie:%{!fPIC:%{!fPIE:-fPIC}}}}}} %{!Wmultichar: -Wno-multichar} %(cc1_cpu) %{profile:-p}"
|
||||
|
||||
Reference in New Issue
Block a user