From 6ed5ed23a5c9c100d43f306b0f5ad6ce99affe6c Mon Sep 17 00:00:00 2001 From: tobtoht Date: Fri, 20 Dec 2024 14:50:58 +0100 Subject: [PATCH] build: macos: replace bind_at_load with fixup_chains --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 1982664..fe0944a 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -224,7 +224,7 @@ endif() # linker if (APPLE) - add_linker_flag_if_supported(-Wl,-bind_at_load LD_SECURITY_FLAGS) + add_linker_flag_if_supported(-Wl,-fixup_chains LD_SECURITY_FLAGS) add_linker_flag_if_supported(-Wl,-dead_strip LD_SECURITY_FLAGS) add_linker_flag_if_supported(-Wl,-dead_strip_dylibs LD_SECURITY_FLAGS) endif()