Commit 48b580e
committed
buildenv: enable pointing enclave build to alternative glibc headers
The enclaves must be built with headers from a specific glibc version
for the sake of reproducibility. It does 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.
This commit adds a "ENCLAVE_SYSTEM_INCLUDES" make var can be set by
the person triggering 'make', to provide a way to inject system include
directories to the enclave build process.
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>1 parent d5a2c9c commit 48b580e
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
285 | 285 | | |
286 | 286 | | |
287 | 287 | | |
288 | | - | |
| 288 | + | |
289 | 289 | | |
290 | 290 | | |
291 | 291 | | |
| |||
0 commit comments