From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B2F593858D33; Tue, 28 Feb 2023 14:09:49 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B2F593858D33 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1677593389; bh=hU+AdZ9gL9nTNKv5piRR3wcAEptoIoJtXeqyGJvtMiY=; h=From:To:Subject:Date:In-Reply-To:References:From; b=OXdmyZZcGU5VCm+jbaq1onZ/M+FN4pn1reZHZWLglp41Nxi2Sfo/bwsQwtvtd/uHD 8IyUOfXBYZlm74emoRuofclqd5DQu3KWNfPmP4QvT0hkGMeioSMNYQg2lhPabOpesZ ue2K8WcX35qtqVSrVHhydHHdiC1pGY6wQ9jNg42k= From: "redi at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug libstdc++/108969] [13 Regression] Initializing iostreams in the library needs a GLIBCXX_3.4.31 versioned symbol Date: Tue, 28 Feb 2023 14:09:49 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: libstdc++ X-Bugzilla-Version: 13.0 X-Bugzilla-Keywords: ABI X-Bugzilla-Severity: normal X-Bugzilla-Who: redi at gcc dot gnu.org X-Bugzilla-Status: ASSIGNED X-Bugzilla-Resolution: X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: redi at gcc dot gnu.org X-Bugzilla-Target-Milestone: 13.0 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=3D108969 --- Comment #10 from Jonathan Wakely --- (In reply to Jakub Jelinek from comment #8) > Unfortunately we build libstdc++ objects just once because even libstdc++= .a > contains -fPIC code. So not sure how to arrange it to be libstdc++.so on= ly. We have a handful of objects which are built without --tag disable-shared in LTCXXCOMPILE, see src/Makefile.am So if we use that approach for globals_io.cc then we can check if _GLIBCXX_SHARED is defined to tell whether we're going into the .so or not.=