mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-08 14:03:29 +00:00
28 lines
729 B
Diff
28 lines
729 B
Diff
From f3927c3cb05ffc77f62026bafd7cea1d25de1e72 Mon Sep 17 00:00:00 2001
|
|
From: toonn <toonn@toonn.io>
|
|
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
|
|
|