From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id 035E4385CCBF; Wed, 27 Sep 2023 05:21:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 035E4385CCBF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695792064; bh=6RtistkX+qqXrMfaE449guomgkpU94GeI+XvtIxL9Mo=; h=From:To:Subject:Date:In-Reply-To:References:From; b=qBQ9nZWK+sgXgZ16Y7vfsvylWUM480P30+1M8Wz4w6fnfZkInQvaoZla9rIFU9VM5 aCbOyBre766ur7FjahVI/k49VH0lUMycKhry2VaPUMi7NQPSJ/jQZ/TRwt8lEgUkUO kL5EWXu3g2z4WvrTSb0592ligyxvnSy8wv1rvX4Y= From: "pinskia at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug driver/111605] Cross compilation doesn't work with `-fuse-ld=mold` Date: Wed, 27 Sep 2023 05:21:03 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: driver X-Bugzilla-Version: unknown X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: pinskia at gcc dot gnu.org X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 List-Id: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=3D111605 --- Comment #5 from Andrew Pinski --- (In reply to Rui Ueyama from comment #4) > > More likely the scripts which build the full toolchains directories sho= uld be creating the symbolic links instead of mold itself. >=20 > So the package manager create a `-ld.mold` as a symlink to `mold`= if > mold is installed? Or, should it create a `-ld.mold` unconditiona= lly > as a symlink to `/usr/bin/mold`? If the latter, what if the user build mo= ld > themselves and install it under `/usr/local/bin`? Most will not install it in /usr/* but for embedded toolchains will be relocatable and installed in the same directory as the parts.=