Re: [R] R static is dynamically linked!!

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Tue, 20 May 2008 07:01:58 +0100 (BST)

You asked for R to be built as a static lib, not for the front-end to be statically linked. It is not the R lib it is dynamically linking to (that is statically linked by default whether or not you ask for a separate lib), but the OS components.

R depends on dlopen-ing extensions, so there is no way to make it entirely static.

On Mon, 19 May 2008, George Georgalis wrote:

> Hi,
>
> After doing all I could find with the confiure script...
> I set some env too...
>
> export enable_R_static_lib=yes
> export want_R_static=yes
> export WANT_R_STATIC_TRUE=yes
>
> ./configure \
> --prefix=${i} \
> --enable-R-static-lib \
> --enable-static \
> --without-readline \
> --without-iconv \
> && make \
> && make install \
> && echo "R ${v} installed in ${i}"
>
> But the result is still dynamic:
>
> ELF 64-bit LSB executable, AMD x86-64, version 1 (SYSV), for NetBSD 4.0, dynamically linked (uses shared libs), not stripped
>
> Is there some way to make this static?

Yes -- R is Open Source, so modify the souces as you wish.

> // George
>
>
>
> --
> George Georgalis, information system scientist <IXOYE><
>
> ______________________________________________
> R-help_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>

-- 
Brian D. Ripley,                  ripley_at_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 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

______________________________________________
R-help_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Received on Tue 20 May 2008 - 06:04:32 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Tue 20 May 2008 - 17:30:42 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive