diff options
author | Timo Teräs <timo.teras@iki.fi> | 2013-09-06 11:24:41 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-09-10 09:12:29 +0000 |
commit | ea0af854b52e5d2b44e6af094572e6ae38d1ba5a (patch) | |
tree | 9980f07181336553da3ae7452b7a69a41750f5fe /main/gcc/ada-shared.patch | |
parent | 6a32c55e54342aadd5b4d4319ab084d34913e16b (diff) | |
download | aports-ea0af854b52e5d2b44e6af094572e6ae38d1ba5a.tar.bz2 aports-ea0af854b52e5d2b44e6af094572e6ae38d1ba5a.tar.xz |
main/gcc: fixes, support crosscompiler creation
- implement cross compiler creation
- fix musl build
- fix cross-building
- fix ada to default to shared linking
- fix gcc-gnat dependencies
Diffstat (limited to 'main/gcc/ada-shared.patch')
-rw-r--r-- | main/gcc/ada-shared.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/main/gcc/ada-shared.patch b/main/gcc/ada-shared.patch new file mode 100644 index 0000000000..6f1c16aff9 --- /dev/null +++ b/main/gcc/ada-shared.patch @@ -0,0 +1,30 @@ +Index: b/gcc/ada/link.c +=================================================================== +--- a/gcc/ada/link.c ++++ b/gcc/ada/link.c +@@ -105,9 +105,9 @@ + + #elif defined (__FreeBSD__) + const char *__gnat_object_file_option = "-Wl,@"; +-const char *__gnat_run_path_option = "-Wl,-rpath,"; +-char __gnat_shared_libgnat_default = STATIC; +-char __gnat_shared_libgcc_default = STATIC; ++const char *__gnat_run_path_option = ""; ++char __gnat_shared_libgnat_default = SHARED; ++char __gnat_shared_libgcc_default = SHARED; + int __gnat_link_max = 8192; + unsigned char __gnat_objlist_file_supported = 1; + const char *__gnat_object_library_extension = ".a"; +@@ -127,9 +127,9 @@ + + #elif defined (linux) || defined(__GLIBC__) + const char *__gnat_object_file_option = "-Wl,@"; +-const char *__gnat_run_path_option = "-Wl,-rpath,"; +-char __gnat_shared_libgnat_default = STATIC; +-char __gnat_shared_libgcc_default = STATIC; ++const char *__gnat_run_path_option = ""; ++char __gnat_shared_libgnat_default = SHARED; ++char __gnat_shared_libgcc_default = SHARED; + int __gnat_link_max = 8192; + unsigned char __gnat_objlist_file_supported = 1; + const char *__gnat_object_library_extension = ".a"; |