openzfs
openzfs copied to clipboard
Upstream: fix linkage on macOS 12
These changes prevent "dyld[678]: symbol not found in flat namespace" for several symbols.
Xcode 13 and/or Monterey has stricter checks for undefined symbols. Note that binaries running on macOS 12, but built on macOS 11 with Xcode 12, don't trigger these checks for some reason.
I believe it is due to ZOL moving to "-fvisibility=hidden" for libraries, which appears to be ignored (not supported?) in XCode 12.
We'll need to check if these changes are still necessary (and if any other changes are needed) with macOS Monterey 12.0.1, which was released today.