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