diff options
author | Timo Teräs <timo.teras@iki.fi> | 2016-07-27 12:12:06 +0000 |
---|---|---|
committer | Timo Teräs <timo.teras@iki.fi> | 2016-07-27 12:12:06 +0000 |
commit | 21c6848da92c215fb1f254356a5553849ae3b9fb (patch) | |
tree | 932f205bfc3d92756ea53ccf8e525b7b023a3229 /main/gcc/005_all_default-as-needed.patch | |
parent | 8ac74adb0c3791cf5eda755be11941f5aede0c63 (diff) | |
download | aports-21c6848da92c215fb1f254356a5553849ae3b9fb.tar.bz2 aports-21c6848da92c215fb1f254356a5553849ae3b9fb.tar.xz |
main/gcc: new bootstrap
- use subpackages="pkg:split:arch" for clean bootstrap
- fix split function for target libraries
- remove hash-style patch in favor of the configure option
- fix ada for arm*-*-*-musleabi* builds
Diffstat (limited to 'main/gcc/005_all_default-as-needed.patch')
-rw-r--r-- | main/gcc/005_all_default-as-needed.patch | 41 |
1 files changed, 19 insertions, 22 deletions
diff --git a/main/gcc/005_all_default-as-needed.patch b/main/gcc/005_all_default-as-needed.patch index c57e1605dd..ee4f7962a1 100644 --- a/main/gcc/005_all_default-as-needed.patch +++ b/main/gcc/005_all_default-as-needed.patch @@ -40,10 +40,9 @@ Index: b/gcc/config/aarch64/aarch64-linux.h =================================================================== --- a/gcc/config/aarch64/aarch64-linux.h +++ b/gcc/config/aarch64/aarch64-linux.h -@@ -36,6 +36,7 @@ +@@ -36,5 +36,6 @@ #define LINUX_TARGET_LINK_SPEC "%{h*} \ - --hash-style=gnu \ + --as-needed \ %{static:-Bstatic} \ %{shared:-shared} \ @@ -56,8 +55,8 @@ Index: b/gcc/config/ia64/linux.h #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux-ia64.so.2" #undef LINK_SPEC --#define LINK_SPEC " --hash-style=gnu \ -+#define LINK_SPEC " --hash-style=gnu --as-needed \ +-#define LINK_SPEC "\ ++#define LINK_SPEC " --as-needed \ %{shared:-shared} \ %{!shared: \ %{!static: \ @@ -69,8 +68,8 @@ Index: b/gcc/config/sparc/linux.h #define GLIBC_DYNAMIC_LINKER "/lib/ld-linux.so.2" #undef LINK_SPEC --#define LINK_SPEC "-m elf32_sparc --hash-style=gnu %{shared:-shared} \ -+#define LINK_SPEC "-m elf32_sparc --hash-style=gnu --as-needed %{shared:-shared} \ +-#define LINK_SPEC "-m elf32_sparc %{shared:-shared} \ ++#define LINK_SPEC "-m elf32_sparc --as-needed %{shared:-shared} \ %{!mno-relax:%{!r:-relax}} \ %{!shared: \ %{!static: \ @@ -82,8 +81,8 @@ Index: b/gcc/config/s390/linux.h #undef LINK_SPEC #define LINK_SPEC \ -- "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu \ -+ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --hash-style=gnu --as-needed \ +- "%{m31:-m elf_s390}%{m64:-m elf64_s390} \ ++ "%{m31:-m elf_s390}%{m64:-m elf64_s390} --as-needed \ %{shared:-shared} \ %{!shared: \ %{static:-static} \ @@ -95,14 +94,14 @@ Index: b/gcc/config/rs6000/linux64.h " -m elf64ppc") #endif --#define LINK_OS_LINUX_SPEC32 LINK_OS_LINUX_EMUL32 " --hash-style=gnu %{!shared: %{!static: \ -+#define LINK_OS_LINUX_SPEC32 LINK_OS_LINUX_EMUL32 " --hash-style=gnu --as-needed %{!shared: %{!static: \ +-#define LINK_OS_LINUX_SPEC32 LINK_OS_LINUX_EMUL32 " %{!shared: %{!static: \ ++#define LINK_OS_LINUX_SPEC32 LINK_OS_LINUX_EMUL32 " --as-needed %{!shared: %{!static: \ %{rdynamic:-export-dynamic} \ -dynamic-linker " GNU_USER_DYNAMIC_LINKER32 "}} \ %(link_os_extra_spec32)" --#define LINK_OS_LINUX_SPEC64 LINK_OS_LINUX_EMUL64 " --hash-style=gnu %{!shared: %{!static: \ -+#define LINK_OS_LINUX_SPEC64 LINK_OS_LINUX_EMUL64 " --hash-style=gnu --as-needed %{!shared: %{!static: \ +-#define LINK_OS_LINUX_SPEC64 LINK_OS_LINUX_EMUL64 " %{!shared: %{!static: \ ++#define LINK_OS_LINUX_SPEC64 LINK_OS_LINUX_EMUL64 " --as-needed %{!shared: %{!static: \ %{rdynamic:-export-dynamic} \ -dynamic-linker " GNU_USER_DYNAMIC_LINKER64 "}} \ %(link_os_extra_spec64)" @@ -114,8 +113,8 @@ Index: b/gcc/config/rs6000/sysv4.h CHOOSE_DYNAMIC_LINKER (GLIBC_DYNAMIC_LINKER, UCLIBC_DYNAMIC_LINKER, \ MUSL_DYNAMIC_LINKER) --#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu %{!shared: %{!static: \ -+#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --hash-style=gnu --as-needed %{!shared: %{!static: \ +-#define LINK_OS_LINUX_SPEC "-m elf32ppclinux %{!shared: %{!static: \ ++#define LINK_OS_LINUX_SPEC "-m elf32ppclinux --as-needed %{!shared: %{!static: \ %{rdynamic:-export-dynamic} \ -dynamic-linker " GNU_USER_DYNAMIC_LINKER "}}" @@ -123,10 +122,9 @@ Index: b/gcc/config/i386/gnu-user64.h =================================================================== --- a/gcc/config/i386/gnu-user64.h +++ b/gcc/config/i386/gnu-user64.h -@@ -57,6 +57,7 @@ see the files COPYING3 and COPYING.RUNTI +@@ -57,5 +57,6 @@ see the files COPYING3 and COPYING.RUNTI %{" SPEC_32 ":-m " GNU_USER_LINK_EMULATION32 "} \ %{" SPEC_X32 ":-m " GNU_USER_LINK_EMULATIONX32 "} \ - --hash-style=gnu \ + --as-needed \ %{shared:-shared} \ %{!shared: \ @@ -139,8 +137,8 @@ Index: b/gcc/config/i386/gnu-user.h { "link_emulation", GNU_USER_LINK_EMULATION },\ { "dynamic_linker", GNU_USER_DYNAMIC_LINKER } --#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) --hash-style=gnu %{shared:-shared} \ -+#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) --hash-style=gnu --as-needed %{shared:-shared} \ +-#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) %{shared:-shared} \ ++#define GNU_USER_TARGET_LINK_SPEC "-m %(link_emulation) --as-needed %{shared:-shared} \ %{!shared: \ %{!static: \ %{rdynamic:-export-dynamic} \ @@ -152,8 +150,8 @@ Index: b/gcc/config/alpha/linux-elf.h #define ELF_DYNAMIC_LINKER GNU_USER_DYNAMIC_LINKER --#define LINK_SPEC "-m elf64alpha --hash-style=gnu %{G*} %{relax:-relax} \ -+#define LINK_SPEC "-m elf64alpha --hash-style=gnu --as-needed %{G*} %{relax:-relax} \ +-#define LINK_SPEC "-m elf64alpha %{G*} %{relax:-relax} \ ++#define LINK_SPEC "-m elf64alpha --as-needed %{G*} %{relax:-relax} \ %{O*:-O3} %{!O*:-O1} \ %{shared:-shared} \ %{!shared: \ @@ -161,10 +159,9 @@ Index: b/gcc/config/arm/linux-elf.h =================================================================== --- a/gcc/config/arm/linux-elf.h +++ b/gcc/config/arm/linux-elf.h -@@ -73,6 +73,7 @@ +@@ -73,5 +73,6 @@ %{!shared:-dynamic-linker " GNU_USER_DYNAMIC_LINKER "}} \ -X \ - --hash-style=gnu \ + --as-needed \ %{mbig-endian:-EB} %{mlittle-endian:-EL}" \ SUBTARGET_EXTRA_LINK_SPEC |