source: scripts/patches/gcc-3.4.3-clean_exec_and_lib_search_paths_when_cross-1.patch@ de4db44

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since de4db44 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: 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  
    37573757              PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0);
    37583758  add_prefix (&exec_prefixes, standard_exec_prefix, "BINUTILS",
    37593759              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",
    37613763              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",
    37633765              PREFIX_PRIORITY_LAST, 2, warn_std_ptr, 0);
     3766    }
    37643767#endif
    37653768
    37663769  add_prefix (&startfile_prefixes, standard_exec_prefix, "BINUTILS",
    37673770              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",
    37693774              PREFIX_PRIORITY_LAST, 1, warn_std_ptr, 0);
     3775    }
    37703776
    37713777  tooldir_prefix = concat (tooldir_base_prefix, spec_machine,
    37723778                           dir_separator_str, NULL);
Note: See TracBrowser for help on using the repository browser.