Refine demangler setting and execinfo use by eddelbuettel · Pull Request #1445 · RcppCore/Rcpp
PR #1401 updated the detection for execinfo.h by relying on a header-finding macro directly which is powerful. It also removed a set of #if defined(...) tests precluding several architectures from trying. This now bit us in issue #1442 as on FreeBSD, the header is found ... but also requires a library.
Now, we could try to use autoconf to find header and library, and attempt to compile a test program (as we now do for OpenMP in RcppArmadillo and RcppEigen). But given that the affected architectures here are on the less-widely used side with difficult access for us to test and refine, a simpler strategy would be to punt and again rely on a set of #if define() so this PR restores this. That is plain KISS Principle: Keep it Simple (and) Stupid.
Checklist
- Code compiles correctly
-
R CMD checkstill passes all tests - Preferably, new tests were added which fail without the change
- Document the changes by file in ChangeLog