fortran/7096: g77 cant find libs at run time

toon@gcc.gnu.org toon@gcc.gnu.org
Fri Jun 21 15:55:00 GMT 2002


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



More information about the Gcc-bugs mailing list