[Rcpp-devel] Large size of libs directory on some systems
Dirk Eddelbuettel
edd at debian.org
Sat Nov 26 14:55:24 CET 2016
On 26 November 2016 at 12:22, Dean Bodenham wrote:
| Dear Dirk,
|
| Thank you very much for your detailed replies!
|
| The Ubuntu system does indeed seem to be using the -g flag. I did try a local
| compile/installation with the ~/.R/Makevars file you suggested, but couldn't
| quite get it to work - I get warnings "linking not done" for the .o files, and
| then an error that the "ffstream.so" file is not found.
Well "it worked me for" but a better approach entirely outside of your
package may be to take
edd at max:~$ grep shared /etc/R/Makeconf
DYLIB_LDFLAGS = -shared -fopenmp# $(CFLAGS) $(CPICFLAGS)
SHLIB_CXXLDFLAGS = -shared
SHLIB_CXX1XLDFLAGS = -shared
SHLIB_FCLDFLAGS = -shared
SHLIB_LDFLAGS = -shared# $(CFLAGS) $(CPICFLAGS)
edd at max:~$
and add them to ~/.R/Makevars as
DYLIB_LDFLAGS = -shared -fopenmp# $(CFLAGS) $(CPICFLAGS)
SHLIB_CXXLDFLAGS = -shared
SHLIB_CXX1XLDFLAGS = -shared
SHLIB_FCLDFLAGS = -shared
SHLIB_LDFLAGS = -shared# $(CFLAGS) $(CPICFLAGS)
When I do that without/with the change I get
edd at max:/tmp/ffstream$ ls -lh ffstream*/src/ffstream.so
-rwxrwxr-x 1 edd edd 9.0M Nov 26 07:52 ffstream.orig/src/ffstream.so
-rwxrwxr-x 1 edd edd 734K Nov 26 07:52 ffstream/src/ffstream.so
edd at max:/tmp/ffstream$
I think it is an issue worth raising with on r-devel and I may do so.
Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org
More information about the Rcpp-devel
mailing list