Christian Blichmann 5c98e30ef2 CMake: Force inclusion of exported functions in add_sapi_library()
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
2022-02-07 07:23:34 -08:00
..
2022-01-28 01:39:09 -08:00
2022-01-28 01:39:09 -08:00
2022-01-28 01:39:09 -08:00
2022-01-28 01:39:09 -08:00
2022-01-28 01:39:09 -08:00
2020-12-16 06:46:03 -08:00
2022-01-28 01:39:09 -08:00