From c7f6a91da512ef8a2634a1bef5d4ba82104659fe Mon Sep 17 00:00:00 2001 From: Rui Ueyama Date: Thu, 14 Mar 2024 16:13:33 +0900 Subject: [PATCH] Bump mold version to 2.30.0 libtool mistakes mold 2.4.1 as GNU ld 2.4 and wrongly concludes that our linker does not support anonymous versioning and suppresses some uses of version scripts. That has been causing subtle compatibility issues with programs that use libtool to create their .so files. Here is the code that mistakes our linker as GNU ld: https://git.savannah.gnu.org/cgit/libtool.git/tree/m4/libtool.m4?h=v2.4.7#n5066 As a workaround, I decided to bump our linker version so that the version number is sufficiently large. This is admittedly ugly but I think it's the simplest solution for the problem. --- CMakeLists.txt | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a7acaf9499..23b8ce24ac 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -44,7 +44,7 @@ # features and behave exactly the same. cmake_minimum_required(VERSION 3.14) -project(mold VERSION 2.4.1) +project(mold VERSION 2.30.0) include(CMakeDependentOption) include(CheckSymbolExists) diff --git a/README.md b/README.md index 0eff6df690..8bbcb664c7 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ necessary packages. You may need to run it as root. git clone https://github.com/rui314/mold.git mkdir mold/build cd mold/build -git checkout v2.4.1 +git checkout stable ../install-build-deps.sh cmake -DCMAKE_BUILD_TYPE=Release -DCMAKE_CXX_COMPILER=c++ .. cmake --build . -j $(nproc)