Date: Sat, 2 Nov 2002 13:35:03 -0800 From: Steve Kargl <sgk@troutmask.apl.washington.edu> To: Mark Murray <mark@grondar.org> Cc: freebsd-current@FreeBSD.ORG Subject: Re: __sF Message-ID: <20021102213503.GA29586@troutmask.apl.washington.edu> In-Reply-To: <200211022042.gA2KgZd0086562@grimreaper.grondar.org> References: <20021102192432.GC28971@troutmask.apl.washington.edu> <200211022042.gA2KgZd0086562@grimreaper.grondar.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, Nov 02, 2002 at 08:42:35PM +0000, Mark Murray wrote: > > > By the time __sF is mainstream, I guess the vendor will have adapted > > > their product to match. Win, win. > > > > > > > No, it does not just work. The NAG f95 compiler generates a > > C file. The C file is compiled by gcc. > > How about "much effort"? there _has_ to be some kind of way to > specify which C library to use. > The only work-around I know is documented in (watch the line wrap) http://www.freebsd.org/cgi/getmsg.cgi?fetch=1755928+1759974+/usr/local/www\ /db/text/2002/freebsd-current/20021013.freebsd-current To recap, I can do f95 -c hello.f90 gcc -v -o hello -nostdlib \ /usr/lib/crt1.o /usr/lib/crti.o /usr/lib/crtbegin.o \ /usr/local/lib/NAGWare/quickfit.o hello.o /usr/local/lib/NAGWare/libf96.so\ -lm \ /usr/home/karg/tmp/minpack/lib/libc.so \ /usr/lib/crtend.o /usr/lib/crtn.o But, the 2nd and 6th lines in the gcc command use the crt* files from freebsd-current. The math library, -lm, is also from freebsd-current. /usr/lib/compat does contains neither a 4.x math library nor the crt* files. The libc.so in the above is a symlink kargl[274] ldd hello hello: libf96.so.1 => /usr/local/lib/NAGWare/libf96.so.1 (0x2806b000) libm.so.2 => /usr/lib/libm.so.2 (0x2810b000) libc.so.4 => /usr/lib/compat/libc.so.4 (0x28129000) -- Steve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20021102213503.GA29586>