summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--patches/02_gcc-dont-require-machine_suffix-in-prefixes.patch25
1 files changed, 25 insertions, 0 deletions
diff --git a/patches/02_gcc-dont-require-machine_suffix-in-prefixes.patch b/patches/02_gcc-dont-require-machine_suffix-in-prefixes.patch
new file mode 100644
index 0000000..ebfcfa6
--- /dev/null
+++ b/patches/02_gcc-dont-require-machine_suffix-in-prefixes.patch
@@ -0,0 +1,25 @@
+Author: Patrick McDermott <patrick.mcdermott@libiquity.com>
+Subject: gcc: Don't require machine_suffix in prefixes
+
+diff -Naurp src.orig/gcc/gcc.c src/gcc/gcc.c
+--- src.orig/gcc/gcc.c 2018-02-09 01:44:06.000000000 -0500
++++ src/gcc/gcc.c 2019-05-29 17:36:34.642884998 -0400
+@@ -4560,14 +4560,14 @@ process_command (unsigned int decoded_op
+ {
+ #ifndef OS2
+ add_prefix (&exec_prefixes, standard_libexec_prefix, "GCC",
+- PREFIX_PRIORITY_LAST, 1, 0);
++ PREFIX_PRIORITY_LAST, 0, 0);
+ add_prefix (&exec_prefixes, standard_libexec_prefix, "BINUTILS",
+- PREFIX_PRIORITY_LAST, 2, 0);
++ PREFIX_PRIORITY_LAST, 0, 0);
+ add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS",
+- PREFIX_PRIORITY_LAST, 2, 0);
++ PREFIX_PRIORITY_LAST, 0, 0);
+ #endif
+ add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
+- PREFIX_PRIORITY_LAST, 1, 0);
++ PREFIX_PRIORITY_LAST, 0, 0);
+ }
+
+ gcc_assert (!IS_ABSOLUTE_PATH (tooldir_base_prefix));