source:
patches/gcc-4.1.1-cross_search_paths-1.patch@
ad4134f
Last change on this file since ad4134f was 89d1048, checked in by , 19 years ago | |
---|---|
|
|
File size: 2.0 KB |
-
gcc/gcc.c
Submitted by: Ryan Oliver <ryan.oliver@pha.com.au> Date: 2005-05-02 Initial Package Version: 4.0.1 Origin: Ryan Oliver (issue reported by Erik-Jan Post) Rediffed against 4.1.0 by Chris Staub 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. diff -Naur gcc-4.1.0.orig/gcc/gcc.c gcc-4.1.0/gcc/gcc.c
old new 3818 3818 PREFIX_PRIORITY_LAST, 2, 0); 3819 3819 add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS", 3820 3820 PREFIX_PRIORITY_LAST, 2, 0); 3821 add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS", 3821 if (*cross_compile == '0') 3822 { 3823 add_prefix (&exec_prefixes, standard_exec_prefix_1, "BINUTILS", 3822 3824 PREFIX_PRIORITY_LAST, 2, 0); 3823 add_prefix (&exec_prefixes, standard_exec_prefix_2, "BINUTILS",3825 add_prefix (&exec_prefixes, standard_exec_prefix_2, "BINUTILS", 3824 3826 PREFIX_PRIORITY_LAST, 2, 0); 3827 } 3825 3828 #endif 3826 3829 3827 3830 add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS", 3828 3831 PREFIX_PRIORITY_LAST, 1, 0); 3829 add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS", 3832 if (*cross_compile == '0') 3833 { 3834 add_prefix (&startfile_prefixes, standard_exec_prefix_2, "BINUTILS", 3830 3835 PREFIX_PRIORITY_LAST, 1, 0); 3836 } 3831 3837 3832 3838 tooldir_prefix = concat (tooldir_base_prefix, spec_machine, 3833 3839 dir_separator_str, NULL);
Note:
See TracBrowser
for help on using the repository browser.