SHA256
1
0
forked from pool/mold

- Add build-blake-3-as-static.patch that builts BLAKE 3 support as static library

into mold. The library is not provided in openSUSE yet.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:compiler/mold?expand=0&rev=96
This commit is contained in:
Martin Liška 2023-09-26 20:11:43 +00:00 committed by Git OBS Bridge
parent 4a6811b64c
commit 27a0b36e2a
3 changed files with 20 additions and 0 deletions

View File

@ -0,0 +1,13 @@
diff --git a/third-party/blake3/c/CMakeLists.txt b/third-party/blake3/c/CMakeLists.txt
index 3aa6c15..4790918 100644
--- a/third-party/blake3/c/CMakeLists.txt
+++ b/third-party/blake3/c/CMakeLists.txt
@@ -31,7 +31,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

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Sep 26 20:11:13 UTC 2023 - Martin Liška <martin.liska@hey.com>
- Add build-blake-3-as-static.patch that builts BLAKE 3 support as static library
into mold. The library is not provided in openSUSE yet.
-------------------------------------------------------------------
Sun Sep 24 17:50:53 UTC 2023 - Martin Liška <martin.liska@hey.com>

View File

@ -24,6 +24,7 @@ License: MIT
Group: Development/Tools/Building
URL: https://github.com/rui314/mold
Source: https://github.com/rui314/mold/archive/v%{version}/mold-%{version}.tar.gz
Patch0: build-blake-3-as-static.patch
BuildRequires: cmake
%if %{suse_version} < 1550
BuildRequires: gcc11-c++