From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from esa2.mentor.iphmx.com (esa2.mentor.iphmx.com [68.232.141.98]) by sourceware.org (Postfix) with ESMTPS id 078D53858D32; Wed, 17 Aug 2022 07:55:50 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 078D53858D32 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=codesourcery.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=mentor.com X-IronPort-AV: E=Sophos;i="5.93,242,1654588800"; d="scan'208";a="81437733" Received: from orw-gwy-02-in.mentorg.com ([192.94.38.167]) by esa2.mentor.iphmx.com with ESMTP; 16 Aug 2022 23:55:48 -0800 IronPort-SDR: pin5GaYI96clelJg52/CVW/j3kqXMKF0yVGVrFjqqr0FbL5cFQRdDZDF31FpTgMj6vCcLXqTXJ krX+VI6Msri/siGMH3ShcHhJuWOyXHTKLmizhCMJc5GTXgVy4V+NX4Ys7w41f2FhFrT+DVoVEz 8PeXZQ0rNwK8kgRM9RjJRa2R8yZ+B2ZoSA/LWj5U1sbbXQjPfSQdDd2Id8JbeLmKAM8a8GPuoB WY3BdrcMVrhVW0AYSD65HZZREIBBaLNyd/zAw9MxywCdLGIG0nujO3L5rwcobPVoJjWFAAZ4oT nOY= Message-ID: <123a5acb-052a-377a-4a86-01306c9e24a6@codesourcery.com> Date: Wed, 17 Aug 2022 09:55:40 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.12.0 Subject: Re: [PATCH] fortran: Add -static-libquadmath support [PR46539] Content-Language: en-US To: Jakub Jelinek , , References: From: Tobias Burnus In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: quoted-printable X-Originating-IP: [137.202.0.90] X-ClientProxiedBy: svr-ies-mbx-11.mgc.mentorg.com (139.181.222.11) To svr-ies-mbx-12.mgc.mentorg.com (139.181.222.12) X-Spam-Status: No, score=-5.4 required=5.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS, KAM_DMARC_STATUS, KAM_SHORT, NICE_REPLY_A, RCVD_IN_MSPIKE_H2, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: fortran@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Fortran mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 17 Aug 2022 07:55:52 -0000 On 16.08.22 16:31, Jakub Jelinek via Gcc-patches wrote: > The following patch is a revival of the > https://gcc.gnu.org/legacy-ml/gcc-patches/2014-10/msg00771.html > patch. While trunk configured against recent glibc and with linker > --as-needed support doesn't really need to link against -lquadmath > anymore, there are still other targets where libquadmath is still in > use. > As has been discussed, making -static-libgfortran imply statically > linking both libgfortran and libquadmath is undesirable because of > the significant licensing differences between the 2 libraries. > [...] > So far slightly tested on x86_64-linux (and will bootstrap/regtest > it there tonight), but I unfortunately don't have a way to test it > e.g. on Darwin. > > Thoughts on this? Looks good to me =E2=80=93 with the caveat of having only limited knowledge= of .spec and Darwin. > --- gcc/fortran/invoke.texi.jj 2022-05-09 09:09:20.312473272 +0200 > +++ gcc/fortran/invoke.texi 2022-08-16 16:12:47.638203577 +0200 ... > +Please note that the @file{libquadmath} runtime library is licensed unde= r the > +GNU Lesser General Public License (LGPL), and linking it statically intr= oduces > +requirements on redistributing the resulting binaries. "on redistributing" sounds odd to me =E2=80=93 "when redistributing" or "on (the) redistribution of" sounds better to me. Tobias ----------------- Siemens Electronic Design Automation GmbH; Anschrift: Arnulfstra=C3=9Fe 201= , 80634 M=C3=BCnchen; Gesellschaft mit beschr=C3=A4nkter Haftung; Gesch=C3= =A4ftsf=C3=BChrer: Thomas Heurung, Frank Th=C3=BCrauf; Sitz der Gesellschaf= t: M=C3=BCnchen; Registergericht M=C3=BCnchen, HRB 106955