extendr: .dylib, not .so files are produced on Mac, which makes installation fail
When I tried to R CMD INSTALL . the hello example on Mac, it fails because:
cp: ../target/release/libhello.so: No such file or directory
and I fount that libhello.dylib was produced instead
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 22 (19 by maintainers)
I could have sworn that I had seen the
.dylibversion working previously, but it’s not now. However, renaming to.sodoes indeed seem to work fine…@andy-thomason You could be right. But I think we still need a standard “Makevars”. Note that R is using a dialect of standard “make”. Specifically, in 1.2.1 of Writing R Extensions
The manpage of
?SHLIBshows that,So I guess, it will correctly generate
.sofor both macOS and Linux. Therefore, I suggest to useMakevarsas other R packages are using.