This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Re: fortran/7096: g77 cant find libs at run time
- From: toon at gcc dot gnu dot org
- To: gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rc at mail dot nerc-wallingford dot ac dot uk, toon at gcc dot gnu dot org
- Date: 21 Jun 2002 20:27:55 -0000
- Subject: Re: fortran/7096: g77 cant find libs at run time
- Reply-to: toon at gcc dot gnu dot org, gcc-bugs at gcc dot gnu dot org, gcc-prs at gcc dot gnu dot org, nobody at gcc dot gnu dot org, rc at mail dot nerc-wallingford dot ac dot uk, toon at gcc dot gnu dot org, gcc-gnats at gcc dot gnu dot org
Synopsis: g77 cant find libs at run time
Responsible-Changed-From-To: unassigned->toon
Responsible-Changed-By: toon
Responsible-Changed-When: Fri Jun 21 13:27:53 2002
Responsible-Changed-Why:
Fortran maintainer
State-Changed-From-To: open->closed
State-Changed-By: toon
State-Changed-When: Fri Jun 21 13:27:53 2002
State-Changed-Why:
Thanks for this complete bug report. At first I thought
I had to ask someone with access to Solaris to figure out
what the problem was, but your bug report is complete
enough for me to deduce what's going on.
Because you configured with --prefix=/nerc/packages/gcc/3.1
all the run-time libraries for various frontends (i.e.
langauges) will reside in a subdirectory of that place.
This is also true of the Fortran run-time library libg2c.so,
but not of the C run-time library libc.so, because that
one is distributed with your (Solaris) system.
Because libc.so resides in a standard place (/lib or
/usr/lib) it can be found, but libg2c.s cannot, because
it isn't living in a standard library directory.
This would be the same if you build C++, which then wouldn't
be able to find _its_ runtime library libstdc++v3.
If you really hate setting LD_LIBRARY_PATH, you could
instruct g77 to use the non-shared library, by specifying
g77 -static ....
Hope this helps.
http://gcc.gnu.org/cgi-bin/gnatsweb.pl?cmd=view%20audit-trail&database=gcc&pr=7096