mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
5c98e30ef2
Newer versions of the GNU gold linkers sometimes omit the symbols for sandboxed functions, leading to errors like `function not found` when Sandboxed API tries to call them at runtime. The fix is simple: Do what Bazel does and wrap the static library in a `-Wl,--whole-archive`/`-Wl,--no-whole-archive` pair. PiperOrigin-RevId: 426910732 Change-Id: Id4183f2964a2dea4fc1dfd8c409bc0b1af9db170