summaryrefslogtreecommitdiffstats
path: root/patches/02_gcc-dont-require-machine_suffix-in-prefixes.patch
blob: ebfcfa6f58a80514a39a98d2040404b8d8619844 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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));