This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/17646] [4.0 Regression] xgcc links 64bit objects into a 32bit target
- From: "jakub at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 6 Jan 2005 14:12:09 -0000
- Subject: [Bug target/17646] [4.0 Regression] xgcc links 64bit objects into a 32bit target
- References: <20040924065857.17646.olh@suse.de>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From jakub at gcc dot gnu dot org 2005-01-06 14:12 -------
There is no bug, the compiler has been configured incorrectly.
--libdir=/usr/lib64 should not be used for multilibbed gcc's, --libdir=/usr/lib
is what you want. The os multilib magic will DTRT.
Similarly, --libexecdir=/usr/lib64 --with-slibdir=/lib64 is wrong too,
you should either just use --prefix=/usr and not pass these at all, or
pass --libdir=/usr/lib --libexecdir=/usr/lib --with-slibdir=/lib.
powerpc64 gcc defaulting to -m64 works just fine that way for years.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=17646