This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug c/33598] gcc 4.2.1 ignores GNU ld on Solaris 9
- From: "ebotcazou at gcc dot gnu dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 30 Sep 2007 18:30:55 -0000
- Subject: [Bug c/33598] gcc 4.2.1 ignores GNU ld on Solaris 9
- References: <bug-33598-15169@http.gcc.gnu.org/bugzilla/>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Comment #13 from ebotcazou at gcc dot gnu dot org 2007-09-30 18:30 -------
> As far as sparcv9 goes, the bin and lib dirs obviously have to be different:
>
> --bindir=/usr/local/bin/sparcv9 --libdir=/usr/local/lib/sparcv9
>
> as opposed to defaults, but the main differences is the use of:
>
> LD_RUN_PATH="/usr/local/lib/sparcv9:/usr/local/lib"
>
> rather than the standard /usr/local/lib.
None of these settings will give you a sparcv9 compiler and that could
explain your problem.
The sparcv9 subdirectory of /lib on Solaris contains 64-bit libraries so
you need a 64-bit capable compiler to use them, either the multilib 32-bit
sparc-sun-solaris2.9 compiler or the sparc64-sun-solaris2.9 compiler.
The configure line you posted will build the non-multilib 32-bit compiler.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=33598