Date: Thu, 18 Aug 2016 17:46:58 -0700 From: "Steven G. Kargl" <kargl@troutmask.apl.washington.edu> To: Tijl Coosemans <tijl@FreeBSD.org> Cc: Dimitry Andric <dim@FreeBSD.org>, Steve Kargl <sgk@troutmask.apl.washington.edu>, freebsd-toolchain@freebsd.org, freebsd-ports@freebsd.org, kargl@uw.edu Subject: Re: Problems with out libgcc_s.so in base Message-ID: <20160819004658.GA94122@troutmask.apl.washington.edu> In-Reply-To: <20160819004304.GA94021@troutmask.apl.washington.edu> References: <20160814230351.GA10587@troutmask.apl.washington.edu> <20160814233430.GA35872@night.db.net> <20160817211710.GA59205@troutmask.apl.washington.edu> <20160818111521.7f79b9f8@kalimero.tijl.coosemans.org> <AB844E50-01A9-4559-8F7A-FE1F7B768F3A@FreeBSD.org> <20160819011432.6f2eadbd@kalimero.tijl.coosemans.org> <20160819004304.GA94021@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, Aug 18, 2016 at 05:43:04PM -0700, Steven G. Kargl wrote: > > % cd ~/work/6/lib Dang. This should have been "cd /usr/local/lib/gcc6" > % sed s/gcc_s/gcc_t/ < libgfortran.so.3 > zxc > % mv zxc libgfortran.so.3 > % elfdump -a libgfortran.so.3 | grep gcc_ > d_val: libgcc_t.so.1 > % ln -sf libgcc_s.so.1 libgcc_t.so.1 This magic can be done as a post-install step. > % ldconfig -R > % 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 > 745:-lgcc_t.1 => /usr/local/lib/gcc6/libgcc_t.so.1 > > % cd tmp > % gfortran6 -o z foo.f90 && ./z > Hello > > That is, the name clash in ldconfig can be avoided by editing > libgfortran.so.3 to look for a symlinked libgcc_s.so.1. > > -- > Steve > http://troutmask.apl.washington.edu/~kargl/ -- Steve http://troutmask.apl.washington.edu/~kargl/
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20160819004658.GA94122>