Accepting request 1113750 from devel:tools:compiler

- 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.

- Update to version 2.2.0
  * We now use BLAKE3 as a cryptographic hash function instead of SHA256. This
    change has made --build-id a few percent faster. libssl is no longer a build
    dependency. (7f7a744)
  * mold is now a few percent faster than the previous version due to an
    optimization of string merging code path. (1a13c50)
  * mold now emits slightly optimized code for thread-local variable accesses.
    (f057fda, d56f528)
  * [RISC-V] mold now supports TLSDESC relocations. TLSDESC is a new mechanism for
    faster thread-local variable access. We (@ishitatsuyuki) actually led the effort
    to ratify the specification (riscv-non-isa/riscv-elf-psabi-doc#373) and
    implement it to compiler toolchain including GCC, GNU binutils and, of course,
    mold. (141556d)
  * mold no longer marks an as-needed .so as "needed" if the .so file is not
    directly used by the output file. Previously, mold marked a .so file as "needed"
    if the .so file was used by another "needed" .so file. (f02db0f)
  * [PPC64] --execute-only now works on 64-bit PowerPC. (ac20d87, 51fec5f)
- Remove openssl dependency.

OBS-URL: https://build.opensuse.org/request/show/1113750
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mold?expand=0&rev=33
This commit is contained in:
Dominique Leuenberger 2023-09-27 22:24:58 +00:00 committed by Git OBS Bridge
commit 36ea89b8f7
5 changed files with 46 additions and 5 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 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a32bec1282671b18ea4691855aed925ea2f348dfef89cb7689cd81273ea0c5df
size 9278811

3
mold-2.2.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:78ddddaaa004e50f8d92a13d8e792a46a1b37745fab48d39ad16aeb5a776e7c6
size 9956678

View File

@ -1,3 +1,31 @@
-------------------------------------------------------------------
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>
- Update to version 2.2.0
* We now use BLAKE3 as a cryptographic hash function instead of SHA256. This
change has made --build-id a few percent faster. libssl is no longer a build
dependency. (7f7a744)
* mold is now a few percent faster than the previous version due to an
optimization of string merging code path. (1a13c50)
* mold now emits slightly optimized code for thread-local variable accesses.
(f057fda, d56f528)
* [RISC-V] mold now supports TLSDESC relocations. TLSDESC is a new mechanism for
faster thread-local variable access. We (@ishitatsuyuki) actually led the effort
to ratify the specification (riscv-non-isa/riscv-elf-psabi-doc#373) and
implement it to compiler toolchain including GCC, GNU binutils and, of course,
mold. (141556d)
* mold no longer marks an as-needed .so as "needed" if the .so file is not
directly used by the output file. Previously, mold marked a .so file as "needed"
if the .so file was used by another "needed" .so file. (f02db0f)
* [PPC64] --execute-only now works on 64-bit PowerPC. (ac20d87, 51fec5f)
- Remove openssl dependency.
-------------------------------------------------------------------
Sun Aug 13 19:37:35 UTC 2023 - Martin Liška <martin.liska@hey.com>

View File

@ -17,13 +17,14 @@
Name: mold
Version: 2.1.0
Version: 2.2.0
Release: 0
Summary: A Modern Linker (mold)
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++
@ -42,7 +43,6 @@ BuildRequires: gcc-32bit
BuildRequires: gdb
BuildRequires: glibc-devel-static
BuildRequires: libzstd-devel
BuildRequires: openssl-devel
%ifnarch ppc64
BuildRequires: valgrind
%endif