From b61c3b1afa5fa8bb23476dc095c7ec87310698d6 Mon Sep 17 00:00:00 2001 From: lanthora Date: Sat, 28 Jun 2025 21:18:22 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E9=93=BE=E6=8E=A5=E6=97=B6?= =?UTF-8?q?=E7=9A=84=20-static=20=E6=A0=87=E8=AF=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- CMakeLists.txt | 3 --- 1 file changed, 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 528f5270..4bfc1a46 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -9,9 +9,6 @@ option(CANDY_STATIC "Static linking dependent libraries") set(BUILD_SHARED_LIBS OFF CACHE BOOL "" FORCE) if (${CANDY_STATIC}) - if (NOT ${CMAKE_SYSTEM_NAME} STREQUAL "Darwin") - set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -static") - endif() set(CMAKE_SKIP_BUILD_RPATH TRUE) set(CANDY_STATIC_OPENSSL 1) set(CANDY_STATIC_FMT 1)