This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: gcc -print-search-dirs prints wrong paths for 64-bit
- From: Daniel Jacobowitz <drow at false dot org>
- To: Dinar Temirbulatov <dtemirbulatov at ru dot mvista dot com>
- Cc: gcc-patches at gcc dot gnu dot org
- Date: Wed, 16 Feb 2005 12:02:21 -0500
- Subject: Re: gcc -print-search-dirs prints wrong paths for 64-bit
- References: <4213737E.1020700@ru.mvista.com>
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