From Prof Brian Ripley <ripley@stats.ox.ac.uk>  Mon Apr 12 10:45:07 1999
From: Prof Brian Ripley <ripley@stats.ox.ac.uk> (Prof Brian Ripley)
Date: Mon, 12 Apr 1999 10:45:07 +0100 (BST)
Subject: Fortran vs C, easing using Fortran
Message-ID: <199904120945.KAA28971@toucan.stats.ox.ac.uk>


> Date: Mon, 12 Apr 1999 11:30:20 +0200 (MET DST)
> From: Albrecht Gebhardt <albrecht.gebhardt@uni-klu.ac.at>
> > I think in R we can do better than at present, if only I knew
> > exactly how. One idea is to have (effectively) a `hints' file that
> > configure uses to add a base set of libraries to FLIBS, but on Solaris
> > at least, using the Fortran command (f77 or g77) to link a dynamic library
> > does the job.  For linking with ld the base FLIBS would need to be
> > 
> > -lF77 -lM77 -lV77 -lsunmath -lm
> > 
> > _if_ f77 is used.  How viable is `use FC to link' on other platforms?
> > 
> 
> I'm not sure if it does matter here, but the only way to build R on my
> Alphas currently is using Fortran as LDCMD:
> 
> in config.site:
> LDCMD="f77 "
> 
> SHLIBLD is "ld -shared -expect_unresolved '*'".

I would have expected

LDCMD=f77
LDFLAGS="-g -nofor_main -fpe3"
SHLIBLD=ld
SHLIBLDFLAGS="-shared -expect_unresolved '*'"

as the way to encode that.  Now my question amounts to

Does SHLIBLD=f77 work with those SHLIBLDFLAGS?
If not, can SHLIBLDFLAGS be modified to make it work?

Brian

-- 
Brian D. Ripley,                  ripley@stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._


Fortran vs C, easing using Fortran
Prof Brian Ripley