From a62f7bfeee6f262f1eaf8f295b7eb8c51bd63425 Mon Sep 17 00:00:00 2001 From: Eddy Ashton Date: Fri, 8 Sep 2023 16:06:13 +0100 Subject: [PATCH] Restore use of `-lvi-cfg` variants of OE libs (#5635) --- 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)