Skip to content
Back to formatted view

Raw Message

Message-ID: <Pine.GSO.3.96.981222093254.26978B-100000@toucan.stats>
Date: 1998-12-22T09:42:10Z
From: Brian Ripley
Subject: Makefiles in contributed packages
In-Reply-To: <13926.43105.655679.260456@c1186.ae.ge.com>

On Thu, 3 Dec 1998, U-E59264-Osman F Buyukisik wrote:

> Hello,
>  I have a couple of suggestions that will help persons with
> machines/OSs that use extensions other than ".so" for shared libs:
> 
> 1) Use the variable SHLIBEXT (defined in Makeconf), DONT use "so" or "sl".
> 2) Use the method in "modreg" to load the dynamic lib:
>  .First.lib <- function(lib, pkg) library.dynam("modreg", pkg, lib)
>     DO NOT USE
>     library.dynam("eda.so")
> 
> 
> Now, I have to edit every package Makefile and zzz.R files for
> hpux10.20 installs. 

My experience (doing this for Windows, where it is .dll) suggests

-- in all cases bar funfits I can just delete the Makefile
-- R INSTALL  has a line

    cat `ls ${dir}/*.[RSqrs]` > ${lib}/${pkg}/R/${pkg}

Add an sed command there to change ${lib}.so to ${lib}.sl (or whatever).
[That is not really what is done under Windows, but is effectively what
Guido's Makefile does.]

Package funfits is a bit harder: I just deleted all the unused (with S/R)
source code, keeping the list in OBJS.


-- 
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._