source: scripts/patches/gcc-3.4.3-clean_lib_search_paths_when_cross-1.patch@ 1cca9e2

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since 1cca9e2 was 7f65c0e, checked in by Jim Gifford <clfs@…>, 19 years ago

r625@server (orig r623): jim | 2005-10-31 12:43:24 -0800
Final Move

  • Property mode set to 100644
File size: 896 bytes
RevLine 
[617118d]1Submitted by: Ryan Oliver <ryan.oliver@pha.com.au>
2Date: 20050502
3Description:
4 Removes standard_exec_prefix_2 from library search path when cross-compiling
5 ie: if cross_compile = 1 in the specs file, do not add
6 /usr/lib/gcc/${TARGET}/${GCC_VER} to the library search path
7
8--- gcc-3.4.3/gcc/gcc.c-orig 2004-09-09 01:16:11.000000000 +1000
9+++ gcc-3.4.3/gcc/gcc.c 2005-05-02 21:32:34.000000000 +1000
10@@ -3765,8 +3765,11 @@
11
12 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
13 PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0);
14- add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS",
15+ if (*cross_compile == '0')
16+ {
17+ add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS",
18 PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0);
19+ }
20
21 tooldir_prefix = concat (tooldir_base_prefix, spec_machine,
22 dir_separator_str, NULL);
Note: See TracBrowser for help on using the repository browser.