This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Name of libgcc.so.1 with suffix?
- From: Steve Kargl <sgk at troutmask dot apl dot washington dot edu>
- To: gcc at gcc dot gnu dot org
- Date: Wed, 17 Aug 2016 14:10:57 -0700
- Subject: Name of libgcc.so.1 with suffix?
- Authentication-results: sourceware.org; auth=none
- Reply-to: kargl at uw dot edu
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?
--
Steve