From 27a0b36e2a7a4d01d9eb0ebdad2e96ddc16dc2bf7894e0d6b0fb9af4d1333b5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Li=C5=A1ka?= Date: Tue, 26 Sep 2023 20:11:43 +0000 Subject: [PATCH] - 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 --- build-blake-3-as-static.patch | 13 +++++++++++++ mold.changes | 6 ++++++ mold.spec | 1 + 3 files changed, 20 insertions(+) create mode 100644 build-blake-3-as-static.patch diff --git a/build-blake-3-as-static.patch b/build-blake-3-as-static.patch new file mode 100644 index 0000000..8e0a98f --- /dev/null +++ b/build-blake-3-as-static.patch @@ -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 diff --git a/mold.changes b/mold.changes index 5ab9090..f0305cf 100644 --- a/mold.changes +++ b/mold.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Sep 26 20:11:13 UTC 2023 - Martin Liška + +- 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 diff --git a/mold.spec b/mold.spec index 4079d0c..a1aa178 100644 --- a/mold.spec +++ b/mold.spec @@ -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++