Re: [Rd] Package with multiple shared libraries

2010-11-16 Thread Andreas Borg
Thanks for your reply. Actually my problem is not how to install the libraries in the sense of copying them to the right place, but how to build more than one .so or .dll file. Anyway, I did read the code and found that absence of a Makefile, a single library is built from all source files in d

Re: [Rd] Package with multiple shared libraries

2010-11-15 Thread Prof Brian Ripley
R CMD INSTALL is R code, and you can read it for yourself rather than asking other people to do so for you. If you look in tools:::.install.packages you will see shlib_install <- function(instdir, arch) { files <- Sys.glob(paste0("*", SHLIB_EXT)) if (leng

[Rd] Package with multiple shared libraries

2010-11-15 Thread Andreas Borg
Dear R-devel members, I would like to compile a package with two seperate shared libraries. For example, in a package 'foo', a file 'bar.so' built from a distinct set of source files should be installed in addition to the default 'foo.so' (or .dll on windows). Does anyone know about a way to a