base16-schemes: unstable-2024-06-21 -> unstable-2024-11-12
[NixPkgs.git] / pkgs / by-name / xe / xeve / 0001-CMakeLists.txt-Disable-static-linking-on-Darwin.patch
blob7f4c49562bdc893397ce431bbc8c61f42e5ee187
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
6 ---
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
12 --- a/CMakeLists.txt
13 +++ b/CMakeLists.txt
14 @@ -64,7 +64,9 @@ if(NOT ARM)
15 else()
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")
21 + endif()
22 endif()
23 message("ARM=${ARM}")
25 --
26 2.44.1