Commit de64220
committed
sgxssl: enable pointing sgxssl build to alternative glibc headers
The enclaves must be built with headers from a specific glibc version
for the sake of reproducibility. They do not actually link to glibc,
merely requiring a few self contained definitions. In the NixOS build
env the glibc system include directories get set through various
wrapper scripts NixOS creates.
When attempting a reproducible build outside of NixOS though, we can't
rely on the compiler having the matching glibc system include dirs.
Instead there needs to be a way to inject "-isystem/some/path" args
into the enclave compiler flags.
A related commit in the SGX SDK buildenv.mk adds support for a
"ENCLAVE_SYSTEM_INCLUDES" make var that can be set by the person
triggering 'make', to provide a way to inject system include
directories to the enclave build process.
This commit ensures that $(ENCLAVE_SYSTEM_INCLUDES) is passed on to
the build of sgxssl.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>1 parent 72c70d6 commit de64220
1 file changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
71 | 71 | | |
72 | 72 | | |
73 | | - | |
| 73 | + | |
74 | 74 | | |
75 | | - | |
| 75 | + | |
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
| |||
0 commit comments