[R] Build R-1.9.0 with static libraries ?

Mélanie PELEGRINI-ISSAC Melanie.Pelegrini at imed.jussieu.fr
Wed May 19 17:10:30 CEST 2004


> ## 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 at imed.jussieu.fr
Bat C 6e etage 75005 PARIS




More information about the R-help mailing list