## Description As discussed in #581, every service links `Mesapy` and `WAMR` into the `enclave.so`. While most linkers avoid linking unneeded static objects, it is not true for some libraries (e.g., sgx_trts).
`-Wl,-whole-archive library-include-runtime.a -Wl,-no-whole-archive` Fixes #581 ## Type of change (select or add applied and delete the others) - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] API change with a documentation update - [ ] Additional test coverage - [ ] Code cleanup or just sync with upstream third-party crates ## How has this been tested? ## Checklist - [ ] Fork the repo and create your branch from `master`. - [ ] If you've added code that should be tested, add tests. - [ ] If you've changed APIs, update the documentation. - [ ] Ensure the tests pass (see CI results). - [ ] Make sure your code lints/format. You can view, comment on, or merge this pull request online at: https://github.com/apache/incubator-teaclave/pull/610 -- Commit Summary -- * fix link scripts -- File Changes -- M cmake/scripts/sgx_link_sign.sh (23) -- Patch Links -- https://github.com/apache/incubator-teaclave/pull/610.patch https://github.com/apache/incubator-teaclave/pull/610.diff -- Reply to this email directly or view it on GitHub: https://github.com/apache/incubator-teaclave/pull/610 You are receiving this because you are subscribed to this thread. Message ID: <apache/incubator-teaclave/pull/6...@github.com>