From e056a9cf82a35a77e8101239214af883c4f59fec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mos=C3=A8=20Giordano?= Date: Mon, 12 Jun 2023 20:17:58 +0100 Subject: [PATCH] [mold] Update to v1.11 --- M/mold/build_tarballs.jl | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/M/mold/build_tarballs.jl b/M/mold/build_tarballs.jl index 4f99fb9027d..d87d8a01dee 100644 --- a/M/mold/build_tarballs.jl +++ b/M/mold/build_tarballs.jl @@ -3,18 +3,28 @@ using BinaryBuilder, Pkg name = "mold" -version = v"1.2.0" +version = v"1.11.0" # Collection of sources required to complete build sources = [ - GitSource("https://github.com/rui314/mold.git", "1f55e40a8a967894816d6366bcc3d08de74c84b4") + GitSource("https://github.com/rui314/mold.git", + "cca255e6be069cdbc135c83fd16036d86b98b85e") ] # Bash recipe for building across all platforms script = raw""" cd $WORKSPACE/srcdir/mold/ +mkdir build && cd build +if [[ "${target}" == i686-linux-gnu ]]; then + # We need to link to librt for `clock_gettime` symbol + export LDFLAGS=-lrt +fi +cmake .. \ + -DCMAKE_INSTALL_PREFIX=${prefix} \ + -DCMAKE_TOOLCHAIN_FILE=${CMAKE_TARGET_TOOLCHAIN} \ + -DCMAKE_BUILD_TYPE=Release make -j${nproc} -make install PREFIX="${prefix}" BINDIR="${bindir}" LIBDIR="${libdir}" +make install """ # These are the platforms we will build for by default, unless further @@ -30,7 +40,7 @@ products = [ # Dependencies that must be installed before this package can be built dependencies = [ Dependency(PackageSpec(name="Zlib_jll", uuid="83775a58-1f1d-513f-b197-d71354ab007a")) - Dependency(PackageSpec(name="OpenSSL_jll", uuid="458c3c95-2e84-50aa-8efc-19380b2a3a95"); compat="1.1.10") + Dependency(PackageSpec(name="OpenSSL_jll", uuid="458c3c95-2e84-50aa-8efc-19380b2a3a95"); compat="3.0.8") ] # Build the tarballs, and possibly a `build.jl` as well.