This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: [patch] Add -static-libquadmath option
- From: Iain Sandoe <iain at codesourcery dot com>
- To: FX <fxcoudert at gmail dot com>
- Cc: GCC Patches <gcc-patches at gcc dot gnu dot org>, fortran List <fortran at gcc dot gnu dot org>, Joseph Myers <joseph at codesourcery dot com>, Mike Stump <mikestump at comcast dot net>
- Date: Thu, 9 Oct 2014 11:44:10 +0100
- Subject: Re: [patch] Add -static-libquadmath option
- Authentication-results: sourceware.org; auth=none
- References: <47CE233C-AD7D-4DEF-A76A-889C724A245B at gmail dot com> <00A51515-A9E3-4A78-AC55-F27BAFCB540E at gmail dot com>
Hi FX,
On 9 Oct 2014, at 11:39, FX wrote:
> Version 2 of the patch, now handling the darwin case (thanks Iain) and expressely noting in the documentation the implications on redistribution (thanks Joseph).
> Bootstrapped and regtested on x86_64-apple-darwin14.
>
> OK to commit?
>
> I need a C/driver options maintainer, or global reviewer, to OK the C changes (but they really are obvious).
> As Iain suggested the darwin.h change, I consider it pre-approved by him :)
But it still needs to be OK'd by either a global reviewer or one of the listed Darwin maintainers ;) ...
... (ccing Mike)
Iain
>
>
>
>> We have a -static-libgfortran option, but on targets where we support quad-prec math through libquadmath, we didn’t have an equivalent -static-libquadmath so far. This patch adds it, in what I think is a rather straightforward manner.
>>
>> The only minor complication comes from the fact that previously, linking libquadmath was conditionally through libgfortran.spec. So the spec was modified: when we use -static-libquadmath, the driver itself includes the -lquadmath (surrounded by the necessary static linking directives), so that libgfortran.spec shouldn’t do it again.
>>
>> Bootstrapped and regtested on x86_64 linux. OK to commit?
>
>
> <static_quad.ChangeLog><static_quad.diff>