From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id A1A3B3858C52; Thu, 19 Jan 2023 10:18:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org A1A3B3858C52 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1674123508; bh=1loagS9PHUpu7+sGJs28vqoRQSrfVtM41tpNhwN5gaU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=Bw06OGNv/3/TYpDWsMqRtCd8JYMXrNE/5Pf8Jiq73XB/Nig7+b/7D2Q5QKYWEOq6c We3ByxTJlyZHxX+17cMZzd5akXfN5aU5iN9Dj5ehmYL+P4sZhpV1UNEkVJsqOJj6QF g6Xn2PbTeyFVU+LgO/WQ8LiMlar+22tVV6ibrjeU= From: "rguenth at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug modula2/108144] m2 does not respect --enable-version-specific-runtime-libs Date: Thu, 19 Jan 2023 10:18:27 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: modula2 X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: rguenth at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: rguenth at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status assigned_to 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=3D108144 Richard Biener changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED Assignee|gaius at gcc dot gnu.org |rguenth at gcc dot = gnu.org --- Comment #5 from Richard Biener --- One issue is that for some reason for example libm2cor/Makefile.am has # Directory in which the compiler finds libraries etc. libsubdir =3D $(libdir)/gcc/$(target_alias)/$(version) # Used to install the shared libgcc. slibdir =3D @slibdir@ but the generated Makefile.in has those re-ordered to # Used to install the shared libgcc. slibdir =3D @slibdir@ ... # Directory in which the compiler finds libraries etc. libsubdir =3D $(libdir)/gcc/$(target_alias)/$(version) it looks like substitutes are re-ordered early here. But since at least inst_slibdir isn't used that should be harmless, inst_libdir doesn't suffer from this in the generated Makefile at least and I only see the version missing. Possibly because toolexeclibdir uses $(gcc_version) and not $(version). I'm testing replacing that with a canonical gcc_version everywhere.=