source: scripts/patches/gcc-3.4.3-remove_standard_startfile_prefix_from_startfile_prefixes-1.patch@ a11a2d51

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

    Submitted By: Ryan Oliver (ryan dot oliver at pha dot com dot au)
    Origin: Ryan Oliver
    Date: 2005-03-21
    Initial Package Version: 3.4.3 
    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
    
    diff -uNr gcc-3.4.3-orig/gcc/gcc.c gcc-3.4.3/gcc/gcc.c
    old new  
    61356135        add_sysrooted_prefix (&startfile_prefixes,
    61366136                              standard_startfile_prefix, "BINUTILS",
    61376137                              PREFIX_PRIORITY_LAST, 0, NULL, 1);
    6138       else if (*cross_compile == '0')
     6138      /* else if (*cross_compile == '0')
    61396139        {
    61406140          if (gcc_exec_prefix)
    61416141            add_prefix (&startfile_prefixes,
     
    61476147                              machine_suffix,
    61486148                              standard_startfile_prefix, NULL),
    61496149                      NULL, PREFIX_PRIORITY_LAST, 0, NULL, 1);
    6150         }
     6150        } */
    61516151
    61526152      add_sysrooted_prefix (&startfile_prefixes, standard_startfile_prefix_1,
    61536153                            "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
Note: See TracBrowser for help on using the repository browser.