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 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