source:
patches/gcc-3.4.3-remove_standard_startfile_prefix_from_startfile_prefixes-1.patch@
873009c
Last change on this file since 873009c was 617118d, checked in by , 19 years ago | |
---|---|
|
|
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 6135 6135 add_sysrooted_prefix (&startfile_prefixes, 6136 6136 standard_startfile_prefix, "BINUTILS", 6137 6137 PREFIX_PRIORITY_LAST, 0, NULL, 1); 6138 else if (*cross_compile == '0')6138 /* else if (*cross_compile == '0') 6139 6139 { 6140 6140 if (gcc_exec_prefix) 6141 6141 add_prefix (&startfile_prefixes, … … 6147 6147 machine_suffix, 6148 6148 standard_startfile_prefix, NULL), 6149 6149 NULL, PREFIX_PRIORITY_LAST, 0, NULL, 1); 6150 } 6150 } */ 6151 6151 6152 6152 add_sysrooted_prefix (&startfile_prefixes, standard_startfile_prefix_1, 6153 6153 "BINUTILS", PREFIX_PRIORITY_LAST, 0, NULL, 1);
Note:
See TracBrowser
for help on using the repository browser.