summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-29 17:45:36 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-29 17:46:11 (EDT)
commitc21da89677f0aea21bb172b8b097ef95e3e47aa4 (patch)
tree5f8151e44a7afd0f7ba9757a1116f14e365828f1
parent19bdb134a6960423f03f948eefc7b1df0eaaa821 (diff)
patches/02_gcc-dont-require-machine_suffix-in-prefixes.patch: New patch
Should fix: gcc: error trying to exec 'cc1': execvp: No such file or directory
-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));