I'd like to compile a third-party or my own static library on Linux (.a file) into an enclave, as described in SGX developer reference for Linux OS, Library Development for Enclaves. I anticipate one interface call from the untrusted application, so an edl file is needed.
Does anyone have an example of a Makefile showing a third-party static library being linked with an enclave on Linux? I've not seen an example in the Sample Code and I think I'm putting the static library in the wrong place or not using the right options. An example would be great, thanks.
If you take a look at the Local Attestation SGX sample on GitHub, you'll see that the 3 enclaves built in that project, all link in a common static library (libLocalAttestation_Trusted.a). Hopefully this will help you link your static library in.