Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix stripping of macOS loadable bundles
Adds `-x` flag to stripping of macOS loadable bundles. Loadable bundles--i.e. truly dynamically loadable libraries on macOS--cannot be stripped without this flag, since you'd be trying to strip away the all symbols, including those used for dynamic loading. Doing so results in `error: symbols referenced by indirect symbol table entries that can't be stripped`. `-x` instead leads to the removal of the unneeded local symbols. As Apple notes in their man page: "For dynamic shared libraries, the maximum level of stripping is usually -x (to remove all non-global symbols)." This should fix bazelbuild#11869 Closes bazelbuild#13314. PiperOrigin-RevId: 368841977
- Loading branch information