You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@teaclave.apache.org by "TheButlah (via GitHub)" <gi...@apache.org> on 2026/01/09 05:03:21 UTC
[I] Support statically linking libteec [teaclave-trustzone-sdk]
TheButlah opened a new issue, #267:
URL: https://github.com/apache/teaclave-trustzone-sdk/issues/267
optee_client supports compilation of statically linked libraries. But optee-teec-sys *forces* dynamic linkage due to [println!("cargo:rustc-link-lib=dylib=teec")](https://github.com/apache/teaclave-trustzone-sdk/blob/fac9759809308e3ba50f807de322bfd9a98a3c5e/optee-teec/optee-teec-sys/build.rs#L55).
It would be good to have the ability to control whether static or dynamic linkage is used.
I propose following the [conventions used by pkg-config](https://docs.rs/pkg-config/0.3.32/pkg_config/#linking). If the build-time env var `TEEC_STATIC` is present, then static linking will be used, if TEEC_DYNAMIC is present, dynamic will be used, and if no such env var is present, it will use the defaults (dynamic).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org
Re: [I] Support statically linking libteec [teaclave-trustzone-sdk]
Posted by "ivila (via GitHub)" <gi...@apache.org>.
ivila closed issue #267: Support statically linking libteec
URL: https://github.com/apache/teaclave-trustzone-sdk/issues/267
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@teaclave.apache.org
For additional commands, e-mail: dev-help@teaclave.apache.org