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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to