1 From f3927c3cb05ffc77f62026bafd7cea1d25de1e72 Mon Sep 17 00:00:00 2001
2 From: toonn <toonn@toonn.io>
3 Date: Tue, 2 Jul 2024 19:23:11 +0200
4 Subject: [PATCH 1/2] CMakeLists.txt: Disable static linking on Darwin
7 CMakeLists.txt | 4 +++-
8 1 file changed, 3 insertions(+), 1 deletion(-)
10 diff --git a/CMakeLists.txt b/CMakeLists.txt
11 index e0873d5..1d639c4 100644
14 @@ -64,7 +64,9 @@ if(NOT ARM)
16 add_definitions(-DARM=1)
17 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flax-vector-conversions")
18 - set(CMAKE_EXE_LINKER_FLAGS "-static")
19 + if(NOT "${CMAKE_SYSTEM_NAME}" STREQUAL "Darwin")
20 + set(CMAKE_EXE_LINKER_FLAGS "-static")