Re: [R] Build R-1.9.0 with static libraries ?

About this list Date view Thread view Subject view Author view Attachment view

From: Mélanie PELEGRINI-ISSAC (Melanie.Pelegrini@imed.jussieu.fr)
Date: Thu 20 May 2004 - 01:10:30 EST


Message-id: <40AB78E6.2090805@imed.jussieu.fr>


> ## For example, one can set flags for profiling here.
> ## MAIN_LDFLAGS=
>
> My guess is that you want -Bstatic.
>

Sorry to bother the mailing list again, but I'm not a specialist in
compiling, so I'm quite lost...

I tried
MAIN_LDFLAGS=-Bstatic
in config.site

Incidentally, after running configure I get in Makeconf file the
following flag
MAIN_LDFLAGS = -Bstatic -Wl,--export-dynamic

R compiles fine, however when I try to run it from another machine I get
the following error
myDirectory/R.bin: error while loading shared libraries: libg2c.so.0:
cannot open shared object file: No such file or directory

So I think it didn't solve my problem... and R still looks for shared
objects. I tried
MAIN_LDFLAGS=-Bstatic -static-libgcc
in config.site
but it didn't work either.

How can I force R to use static versions of shared objects such as
LIBS = -lreadline -ldl -lncurses -lm
FLIBS = -lfrtbegin -lg2c -lm -lgcc_s
???

Any hint would be much appreciated...

Melanie

------------------
Mélanie PELEGRINI-ISSAC tel : (33 0)1 53 82 84 20
Unité 483 INSERM fax : (33 0)1 53 82 84 48
9, quai Saint-Bernard email :Melanie.Pelegrini@imed.jussieu.fr
Bat C 6e etage 75005 PARIS

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Mon 31 May 2004 - 23:05:11 EST