From 5f657612b92a2e09c50e70242e7d25808de37dfe Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 17 Mar 2015 22:05:30 -0400 Subject: 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. --- gcc/gcc.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'gcc') 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. */ -- cgit v1.2.3