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@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@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@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@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 | e...@debian.org _______________________________________________ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/mailman/listinfo/rcpp-devel