sandboxed-api/cmake
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
..
modules Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
abseil-cpp.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
benchmark.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
gflags.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
glog.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
googletest.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
libcap_capability.h.in Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
libcap.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
libffi.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
libunwind.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
protobuf.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
sandbox2.pc.in Add pkg-config files generation. 2020-12-16 06:46:03 -08:00
sapi.pc.in Add pkg-config files generation. 2020-12-16 06:46:03 -08:00
SapiBuildDefs.cmake CMake: Force inclusion of exported functions in add_sapi_library() 2022-02-07 07:23:34 -08:00
SapiDeps.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
SapiFetchContent.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00
SapiOptions.cmake CMake: Build contrib sandboxes if requested 2022-02-02 07:02:28 -08:00
SapiUtil.cmake CMake: Use PARSE_ARGV for argument parsing, LINKER: for linking 2022-02-03 04:42:35 -08:00
zlib.cmake Change license link to HTTPS URL 2022-01-28 01:39:09 -08:00