Mailing List Archive

Automatic compiler flags for gcc 5 and clang
Hi,

Trying to get modperl compiling on a recent Ubuntu, I encountered the
"inline semantics changed" issue, which is also mentioned here:

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777935#14

To make compilation easier on gcc5/clang hosts, I've created the
attached patch, which automatically selects the appropriate c89 option,
when modperl is being built with either gcc 5 or clang.

I've tested the patch on Ubuntu 15.10 (with gcc 5.2.1), Fedora 23 (with
gcc 5.3.1) and FreeBSD 10.2 (with clang).

--
Klaus S. Madsen, Udvikler, ksm@jobindex.dk
Jobindex A/S, Holger Danskes Vej 91, 2000 Frederiksberg
Tlf +45 38 32 33 55, Dir +45 38 32 33 70
http://www.jobindex.dk/
Re: Automatic compiler flags for gcc 5 and clang [ In reply to ]
On 3 March 2016 at 19:58, Klaus S. Madsen <ksm@jobindex.dk> wrote:
> Hi,
>
> Trying to get modperl compiling on a recent Ubuntu, I encountered the
> "inline semantics changed" issue, which is also mentioned here:
>
> https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=777935#14
>
> To make compilation easier on gcc5/clang hosts, I've created the attached
> patch, which automatically selects the appropriate c89 option, when modperl
> is being built with either gcc 5 or clang.
>
> I've tested the patch on Ubuntu 15.10 (with gcc 5.2.1), Fedora 23 (with gcc
> 5.3.1) and FreeBSD 10.2 (with clang).
>

Thanks, committed in rThanks, committed in r1733566.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org