This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: cannot find libc.a for 64-bit compile
- To: David T-G <davidtg at bigfoot dot com>
- Subject: Re: cannot find libc.a for 64-bit compile
- From: Alexandre Oliva <aoliva at redhat dot com>
- Date: 14 Feb 2001 23:02:46 -0200
- Cc: GCC Help List <gcc-help at gcc dot gnu dot org>
- Organization: GCC Team, Red Hat
- References: <20010214103059.R13744@sector13.org>
On Feb 14, 2001, David T-G <davidtg@bigfoot.com> wrote:
> In response to a request for a 64-bit capable compiler from one of our
> developers, I downloaded the SunFreeWare egcs snapshot of 2000-03 and
> installed it in /usr/local/egcs as Steve laid it out. We've added the
> -m64 directive to the CFLAGS and updated LD_LIBRARY_PATH to point to
> /usr/local/egcs/lib/gcc-lib/sparc-sun-solaris2.8/2.96/sparcv9
LD_LIBRARY_PATH doesn't affect the directories in which the linker
looks for libraries. It only affects the run-time linker. Note that,
when given -m64, GCC should already look for libgcc in the sparcv9
directory.
> but a make still finds /usr/lib/libc.a, which is only 32-bit
> (Solaris8).
A 64-bit libc should be in /usr/lib/sparcv9. If you don't have them,
you'll probably have to go install them from the Solaris installation
CD. I suppose GCC would automatically tell the linker to look for
libraries in /usr/lib/sparcv9 when given the -m64 switch.
--
Alexandre Oliva Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist *Please* write to mailing lists, not to me