Re: [R-SIG-Mac] Cross compilation and linking without -undefined

2024-01-02 Thread Prof Brian Ripley
This is just a default. AFAICS it is set in DYLIB_LDFLAGS and you can set that as you wish - it is documented in config.site. That cross-compilation cannot test-load is a major reason not to use it and why support for packages was downplayed on Windows. On 02/01/2024 19:21, Jeroen Ooms wrote

[R-SIG-Mac] Cross compilation and linking without -undefined

2024-01-02 Thread Jeroen Ooms
R on MacOS defaults to linking with "-undefined dynamic_lookup" when building packages, which suppresses linking errors due to undefined symbols. Undefined symbols often indicate that the package has omitted a required library in PKG_LIBS, or that the architecture of the static lib does not match t