summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-03-17 22:05:30 -0400
committermidipix <writeonce@midipix.org>2015-03-17 22:05:30 -0400
commit5f657612b92a2e09c50e70242e7d25808de37dfe (patch)
treefe296565127debaec04452c8352c810be8f5cd06
parentedb6535a4f8b541820f90e517d8063d1e91b745c (diff)
downloadcbb-gcc-4.6.4-5f657612b92a2e09c50e70242e7d25808de37dfe.tar.bz2
cbb-gcc-4.6.4-5f657612b92a2e09c50e70242e7d25808de37dfe.tar.xz
gcc.c: default library path:
+ for sysroot-enabled systems, add the relative /lib directory to the default library path. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
-rw-r--r--gcc/gcc.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gcc/gcc.c b/gcc/gcc.c
index 6efd037c5..08d7d59e1 100644
--- a/gcc/gcc.c
+++ b/gcc/gcc.c
@@ -3641,6 +3641,9 @@ process_command (unsigned int decoded_options_count,
PREFIX_PRIORITY_LAST, 0, 0);
}
+ add_sysrooted_prefix (&startfile_prefixes, "/lib/", "GCC",
+ PREFIX_PRIORITY_LAST, 0, 0);
+
/* COMPILER_PATH and LIBRARY_PATH have values
that are lists of directory names with colons. */