This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Name of libgcc.so.1 with suffix?
- From: Richard Biener <richard dot guenther at gmail dot com>
- To: kargl at uw dot edu
- Cc: GCC Development <gcc at gcc dot gnu dot org>
- Date: Thu, 18 Aug 2016 09:59:20 +0200
- Subject: Re: Name of libgcc.so.1 with suffix?
- Authentication-results: sourceware.org; auth=none
- References: <20160817211057.GA59129@troutmask.apl.washington.edu>
On Wed, Aug 17, 2016 at 11:10 PM, Steve Kargl
<sgk@troutmask.apl.washington.edu> wrote:
> Hi,
>
> If I run configure with "--program-suffix=6", I get gcc6, gfortran6, etc.
> When ldd looks for libgcc.so.1 on FreeBSD, she finds the wrong one.
>
> % cat foo.f90
> program foo
> print *, 'Hello'
> end program
> % gfortran6 -o z foo.f90 && ./z
> /lib/libgcc_s.so.1: version GCC_4.6.0 required by \
> /usr/local/lib/gcc6/libgfortran.so.3 not found
>
> % ldconfig -r | grep libgcc
> 6:-lgcc_s.1 => /lib/libgcc_s.so.1
> 735:-lgcc_s.1 => /usr/local/lib/gcc6/libgcc_s.so.1
>
> Is it possible to add a suffix to libgcc.so, e.g., libgcc6.so.1?
No, but you can try --enable-version-specific-runtime-libs
Richard.
> --
> Steve