Commit 1a0285c
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: 3688419771 parent 507aeaa commit 1a0285c
File tree
1 file changed
+6
-1
lines changed- src/main/java/com/google/devtools/build/lib/rules/objc
1 file changed
+6
-1
lines changedLines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1086 | 1086 | | |
1087 | 1087 | | |
1088 | 1088 | | |
| 1089 | + | |
| 1090 | + | |
| 1091 | + | |
1089 | 1092 | | |
1090 | 1093 | | |
1091 | 1094 | | |
| |||
1593 | 1596 | | |
1594 | 1597 | | |
1595 | 1598 | | |
| 1599 | + | |
1596 | 1600 | | |
1597 | 1601 | | |
1598 | 1602 | | |
| |||
1604 | 1608 | | |
1605 | 1609 | | |
1606 | 1610 | | |
| 1611 | + | |
1607 | 1612 | | |
1608 | | - | |
| 1613 | + | |
1609 | 1614 | | |
1610 | 1615 | | |
1611 | 1616 | | |
| |||
0 commit comments