I haven't managed to get it to build with mold either and opted to remove related options from LDFLAGS and RUSTFLAGS. If you don't need mold for this package it's an easy fix
From 7eb31dabea71d74faef5315a53b957644370f62a Mon Sep 17 00:00:00 2001
From: Ian P Bradley <ian.bradley@studiocrabapple.com>
Date: Wed, 25 Dec 2024 01:52:57 -0800
Subject: [PATCH] Remove mold related flags from RUSTFLAGS and LDFLAGS
---
PKGBUILD | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/PKGBUILD b/PKGBUILD
index 403e096..466b90a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -195,6 +195,10 @@ build() {
CFLAGS="${CFLAGS/-fexceptions/}"
CXXFLAGS="${CXXFLAGS/-fexceptions/}"
+ # Remove mold linker related flags that break builds
+ RUSTFLAGS="${RUSTFLAGS/-C?link-arg=-fuse-ld=mold/}"
+ LDFLAGS="$(shopt -s extglob; echo ${LDFLAGS//+(-fuse-ld=mold|-Wl,--separate-debug-file)})"
+
# LTO needs more open files
ulimit -n 4096
--
2.47.1
Pinned Comments
lsf commented on 2025-01-01 21:28 (UTC)
Please refrain from abusing the flagging of a package as out of date for build issues. This is not what it is supposed to be used for.
I automatically get notified of comments to this package. I do not need to be notified of whatever build problems occur (whether they are an individual's problems or the actual package's problems) twice, and not via flagging it out of date.
Issues with this package can also be reported at https://codeberg.org/librewolf/issues/issues (as it is also maintained there, at https://codeberg.org/librewolf/arch, too).