From c21da89677f0aea21bb172b8b097ef95e3e47aa4 Mon Sep 17 00:00:00 2001
From: Patrick McDermott <patrick.mcdermott@libiquity.com>
Date: Wed, 29 May 2019 17:45:36 -0400
Subject: 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
---
(limited to 'patches')

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));
--
cgit v0.9.1