From cbcb2cc89c35bbd5f33873049bd5795e7b8e5389 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Fri, 8 Sep 2023 08:57:57 +0000 Subject: [PATCH] Use -lvi-cfg variants of OE libs --- cmake/open_enclave.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/cmake/open_enclave.cmake b/cmake/open_enclave.cmake index b6e5a84bf3ec..4d99cc9ea841 100644 --- a/cmake/open_enclave.cmake +++ b/cmake/open_enclave.cmake @@ -38,6 +38,11 @@ if(REQUIRE_OPENENCLAVE) ) option(LVI_MITIGATIONS "Enable LVI mitigations" ON) + if(LVI_MITIGATIONS) + string(APPEND OE_TARGET_LIBC -lvi-cfg) + list(TRANSFORM OE_TARGET_ENCLAVE_AND_STD APPEND -lvi-cfg) + list(TRANSFORM OE_TARGET_ENCLAVE_CORE_LIBS APPEND -lvi-cfg) + endif() function(add_lvi_mitigations name) if(LVI_MITIGATIONS)