summaryrefslogtreecommitdiff
blob: 2cd947b4e82ff0ea89f3958ffcbc611326d746d3 (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
26
27
In Prefix we are really self-providing, so don't look back!
Patch by Heiko Przybyl

--- gcc/gcc.c
+++ gcc/gcc.c
@@ -1525,8 +1525,8 @@ static const char *gcc_libexec_prefix;
 #endif
 
 static const char *const standard_exec_prefix = STANDARD_EXEC_PREFIX;
-static const char *const standard_exec_prefix_1 = "/usr/libexec/gcc/";
-static const char *const standard_exec_prefix_2 = "/usr/lib/gcc/";
+static const char *const standard_exec_prefix_1 = "@GENTOO_PORTAGE_EPREFIX@/usr/libexec/gcc/";
+static const char *const standard_exec_prefix_2 = "@GENTOO_PORTAGE_EPREFIX@/usr/lib/gcc/";
 static const char *md_exec_prefix = MD_EXEC_PREFIX;
 
 static const char *md_startfile_prefix = MD_STARTFILE_PREFIX;
--- gcc/config/darwin.h
+++ gcc/config/darwin.h
@@ -1286,7 +1286,7 @@ void add_framework_path (char *);
       }						\
   } while (0)
 
-#define SYSROOT_PRIORITY PREFIX_PRIORITY_FIRST
+#define SYSROOT_PRIORITY PREFIX_PRIORITY_LAST
 /* APPLE LOCAL end isysroot 5083137 */
 
 /* Every program on darwin links against libSystem which contains the pthread