Re: Adding BASE_C99 for ports needing -std=gnu99 for base-gcc

2021-12-28 Thread Kurt Mosiejczuk
On Tue, Dec 28, 2021 at 01:37:46PM +0100, Jeremie Courreges-Anglas wrote: > On Tue, Dec 28 2021, Jonathan Gray wrote: > > Is it time to consider changing the gcc default to gnu99? > Definitely. I have considered this since some time already and feel > a bit lame for not even proposing it. I

Re: Adding BASE_C99 for ports needing -std=gnu99 for base-gcc

2021-12-28 Thread Jeremie Courreges-Anglas
On Tue, Dec 28 2021, Jonathan Gray wrote: > On Mon, Dec 27, 2021 at 09:50:04PM -0500, Kurt Mosiejczuk wrote: >> I find myself adding the following to many ports files nowadays >> >> .include >> .if !${PROPERTIES:Mclang} >> CFLAGS +=-std=gnu99 >> .endif >> >> Rather than continue this, I'd

Re: Adding BASE_C99 for ports needing -std=gnu99 for base-gcc

2021-12-28 Thread Marc Espie
On Mon, Dec 27, 2021 at 09:50:04PM -0500, Kurt Mosiejczuk wrote: > I find myself adding the following to many ports files nowadays > > .include > .if !${PROPERTIES:Mclang} > CFLAGS += -std=gnu99 > .endif > > Rather than continue this, I'd like to propose adding BASE_C99 to bsd.port.mk > >

Re: Adding BASE_C99 for ports needing -std=gnu99 for base-gcc

2021-12-27 Thread Jonathan Gray
On Mon, Dec 27, 2021 at 09:50:04PM -0500, Kurt Mosiejczuk wrote: > I find myself adding the following to many ports files nowadays > > .include > .if !${PROPERTIES:Mclang} > CFLAGS += -std=gnu99 > .endif > > Rather than continue this, I'd like to propose adding BASE_C99 to bsd.port.mk > >

Adding BASE_C99 for ports needing -std=gnu99 for base-gcc

2021-12-27 Thread Kurt Mosiejczuk
I find myself adding the following to many ports files nowadays .include .if !${PROPERTIES:Mclang} CFLAGS += -std=gnu99 .endif Rather than continue this, I'd like to propose adding BASE_C99 to bsd.port.mk When BASE_C99= Yes, if on a non-base-clang arch, it will add the same to CFLAGS,