[R-pkg-devel] Portable method of stripping debug symbols

Dirk Eddelbuettel edd at debian.org
Thu Jan 4 19:06:04 CET 2018


On 4 January 2018 at 00:27, Thibault Vatter wrote:
| We faced a problem when we tried Dirk's solution for our package
| rvinecopulib: there is a strip binary on OS X but it doesn't work as the
| linux one.
| 
| As such, to avoid calling OS X's strip which doesn't work, we use:
| 
| strippedLib: $(SHLIB)
| if test -e "/usr/bin/strip" & test -e "/bin/uname" & [[ `uname` == "Linux"
| ]] ; then /usr/bin/strip --strip-debug $(SHLIB); fi
| .phony: strippedLib

Yes, this is good. Someone (you?) had pointed this out to me before.

Did you add this to your actual released and on-CRAN package?

Dirk

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



More information about the R-package-devel mailing list