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@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,                  [EMAIL PROTECTED]
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@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.

Reply via email to