source: scripts/patches/gcc-4.0.0-remove_standard_startfile_prefix_from_startfile_prefixes-1.patch@ ec96aa6

clfs-1.2 clfs-2.1 clfs-3.0.0-systemd clfs-3.0.0-sysvinit systemd sysvinit
Last change on this file since ec96aa6 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: 1.4 KB
  • gcc/gcc.c

    Submitted By: Ryan Oliver (ryan dot oliver at pha dot com dot au)
    Origin: Ryan Oliver
    Date: 2005-04-24
    Initial Package Version: 4.0.0
    Description: This patch is primarily here to fix issues with libtool when
    	building packages on a multi-arch/multilib system, as libtool 
    	effectively uses the library search paths from gcc -print-search-dirs
    	to locate .la files.
    	This poses a problem as by default gcc supplies
    		eg: /usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/../../../
    	which following the example would cause libtool to use .la files under
    	/usr/lib64 instead of /usr/lib if building a package 32bit, and thus
    	will attempt to link in incompatible 64bit libraries.
    	Here we simply remove this path (provided by standard_startfile_prefix)
    	from the library search order
    
    old new  
    61886188        add_sysrooted_prefix (&startfile_prefixes,
    61896189                              standard_startfile_prefix, "BINUTILS",
    61906190                              PREFIX_PRIORITY_LAST, 0, 1);
    6191       else if (*cross_compile == '0')
     6191      /* else if (*cross_compile == '0')
    61926192        {
    61936193          if (gcc_exec_prefix)
    61946194            add_prefix (&startfile_prefixes,
     
    62006200                              machine_suffix,
    62016201                              standard_startfile_prefix, NULL),
    62026202                      NULL, PREFIX_PRIORITY_LAST, 0, 1);
    6203         }
     6203        } */
    62046204
    62056205      if (*standard_startfile_prefix_1)
    62066206        add_sysrooted_prefix (&startfile_prefixes,
Note: See TracBrowser for help on using the repository browser.