[Rcpp-devel] Large size of libs directory on some systems

Dirk Eddelbuettel edd at debian.org
Fri Nov 25 14:38:39 CET 2016


On 25 November 2016 at 07:23, Dirk Eddelbuettel wrote:
| Dan Dillon has some experimental code to provide a stripping plugin.  Until
| then, and just for local tests, do something like this in src/Makevars:
| 
|    PKG_LIBS= -Wl,-S
| 
| This asks the linker to use -S to strip debugging symbols (but not general
| symbols, which R needs).  On my Ubuntu 16.04 box I get a change from
| 
|    9.0 mb    (default)
| 
| to
| 
|    734 kb    (with stripping)
| 
| for twelve-fold reduction in size _on the same system_.
| 
| If/when we have something more general I am sure it will be announced here.
| If you want to play with the plugin hit me and/or Dan (CC'ed).

PS The reason we have not talked about this / used this more is that we think
it raise the "not portable" flags at CRAN so we want to (ideally) do it with
some code that behaves correctly.

For local use in ~/.R/Makevars it is perfectly fine.

Dirk

-- 
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org


More information about the Rcpp-devel mailing list