On Wed, 11 Dec 2019 at 14:07, Guido Kraemer <gkrae...@bgc-jena.mpg.de> wrote: > > I am building an R package (https://github.com/gdkrmr/zarr-R) that wraps > a couple of C++ headers and the resulting shared object is huge (>20Mb, > see https://travis-ci.org/gdkrmr/zarr-R). I have tried to set the > following in `./src/Makevars`: > > PKG_CPPFLAGS=-I"../inst/include" -ffunction-sections -fdata-sections > PKG_LIBS=-lstdc++fs -flto -Wl,--gc-sections > > but this does not reduce the size of the shared object and produces some > warnings in `R CMD check` due to portability issues. Is there a way to > reduce the size of the shared object or do I just have to live with it?
Hi, see Dirk's http://dirk.eddelbuettel.com/blog/2019/03/27/ and related posts (linked in the first paragraph). Iñaki ______________________________________________ R-package-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel