source:
scripts/patches/gcc-3.4.3-clean_exec_and_lib_search_paths_when_cross-1.patch@
a7e64f3
Last change on this file since a7e64f3 was 7f65c0e, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.0 KB |
-
gcc-3.4.3/gcc/gcc.
Submitted by: Ryan Oliver <ryan.oliver@pha.com.au> Date: 2005-05-02 Initial Package Version: 3.4.3 Origin: Ryan Oliver (issue reported by Erik-Jan Post) Upstream Status: N/A Description: Removes standard_exec_prefix_2 from library search path when cross-compiling. Removes both standard_exec_prefix_1 and standard_exec_prefix_2 from the gcc executable search path when cross-compiling. ie: if cross_compile = 1 in the specs file, do not - do not add /usr/lib/gcc/${TARGET}/${GCC_VER} to the library search path - do not add /usr/lib/gcc/${TARGET}/${GCC_VER} or /usr/libexec/gcc/${TARGET}/${GCC_VER} to the executable search path This avoids the possibility of linking in libraries from the host if they exist under those directories.
old new 3757 3757 PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0); 3758 3758 add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS", 3759 3759 PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0); 3760 add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS", 3760 if (*cross_compile == '0') 3761 { 3762 add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS", 3761 3763 PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0); 3762 add_prefix (&exec_prefixes, standard_exec_prefix_2, "BINUTILS",3764 add_prefix (&exec_prefixes, standard_exec_prefix_2, "BINUTILS", 3763 3765 PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0); 3766 } 3764 3767 #endif 3765 3768 3766 3769 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS", 3767 3770 PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0); 3768 add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS", 3771 if (*cross_compile == '0') 3772 { 3773 add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS", 3769 3774 PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0); 3775 } 3770 3776 3771 3777 tooldir_prefix = concat (tooldir_base_prefix, spec_machine, 3772 3778 dir_separator_str, NULL);
Note:
See TracBrowser
for help on using the repository browser.