
06-11-2008, 02:00 AM
|
| Junior Member | | Join Date: Sep 2009
Posts: 0
| |
Re: gcc build fails "cannot compute suffix of object files" Dave Uhring wrote:
> On Tue, 10 Jun 2008 17:26:23 -0400, Oscar del Rio wrote:
>
>> What's the correct way to build gcc so that 32-bit libs are
>> searched in /opt/local/lib and 64-bit libs in /opt/local/lib/64?
>
> Specify Sun's ld?
>
> The gcc shipped with b_90 has this:
>
> --with-ld=/usr/ccs/bin/ld --without-gnu-ld
>
I checked that, with "gcc -v test.c". It is using Sun ld.
ld: Software Generation Utilities - Solaris Link Editors: 5.11-1.1598
The build would use gnu ld only if you specify --with-gnu-ld
and the gnu path.
I should RTFM  about compiling 64-bit libraries. |