737cff798a
Based on the last version from Alpine, but installed to /usr/gcc6 and with pretty much everything disabled except for the C compiler. We can probably throw out a lot of patches, and make the APKBUILD much smaller. But let's focus on making it possible to compile old kernels again first. There's still a lot to do for that, see #103.
30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
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";
|