From ee9125fa9a1e4e6fbc33fa8f22089c84a52237a3 Mon Sep 17 00:00:00 2001 From: Daniel Bertalan Date: Sat, 19 Feb 2022 13:01:06 +0100 Subject: [PATCH] Meta: Use correct variable for checking if the mold linker is used This variable was originally called USE_MOLD_LINKER, but it was changed to ENABLE_MOLD_LINKER during review to be consistent with other configuration options. I branched off the commits that added RELR support before this change, and I failed to update the variable name there. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1bfed5de075..71546875afc 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -280,7 +280,7 @@ if(NOT "${SERENITY_ARCH}" STREQUAL "aarch64") add_link_options(-fuse-ld=mold) endif() - if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$" OR USE_MOLD_LINKER) + if (CMAKE_CXX_COMPILER_ID MATCHES "Clang$" OR ENABLE_MOLD_LINKER) add_link_options(LINKER:--pack-dyn-relocs=relr) else() add_link_options(LINKER:-z,pack-relative-relocs)