This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gcc -print-search-dirs prints wrong paths for 64-bit


On Wed, Feb 16, 2005 at 07:23:26PM +0300, Dinar Temirbulatov wrote:
> Hi,
> Perhaps there is a bug in the latest gcc-3.4.3 release: 
> If you build the 64bit cross-compiler and run it with "-print-search-dirs", 
> it prints out the 32-bit library paths (ie ..../usr/lib/), instead of 
> (.../usr/lib64/). I guess it should print out the 64-bit paths unless you 
> run with -m32.
> The enclosed patch fixes this bug for gcc-3.4.3, and only for x86 target.

This patch is obviously wrong, since the driver shouldn't know anything
about lib64 or about machine-specific options.

Your problem is that the default multilib is not appended to the search
directories.  I don't know if it should be or not.

-- 
Daniel Jacobowitz
CodeSourcery, LLC


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]