mold/0002-build-blake3-as-static.patch

30 lines
884 B
Diff
Raw Normal View History

Src: https://build.opensuse.org/request/show/1118582
By Martin Liška <martin.liska@hey.com>
From 3b14fbc71c42b312f77ac4612b28b3e20462e02b Mon Sep 17 00:00:00 2001
From: jchzhou <zhoujiacheng@iscas.ac.cn>
Date: Tue, 19 Mar 2024 17:14:37 +0800
Subject: [PATCH] build blake3 as static
Signed-off-by: jchzhou <zhoujiacheng@iscas.ac.cn>
---
third-party/blake3/c/CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/third-party/blake3/c/CMakeLists.txt b/third-party/blake3/c/CMakeLists.txt
index 3190eff..3e8c763 100644
--- a/third-party/blake3/c/CMakeLists.txt
+++ b/third-party/blake3/c/CMakeLists.txt
@@ -32,7 +32,7 @@ set(BLAKE3_X86_NAMES i686 x86 X86)
set(BLAKE3_ARMv8_NAMES aarch64 AArch64 arm64 ARM64 armv8 armv8a)
# library target
-add_library(blake3
+add_library(blake3 STATIC
blake3.c
blake3_dispatch.c
blake3_portable.c
--
2.44.0