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 [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to