Thursday 6 March 2014

Re: Changing default CFLAGS on i386

On Thu, Mar 06, 2014 at 01:34:54PM -0800, Steve Langasek wrote:
>
> This is a prejudicial framing of the question. :) The compiler is not
> producing code that is incorrect, it's producing code that is inconsistent
> with the particular standard that glib upstream is expecting. If glib
> requires a C99 compiler, then glib should specify (via autoconf) that, when
> using gcc, it wants -std=c99.

I suspect glib would want std=gnu99 not std=c99, but yes, there are
many packages in the archive that pick their std via upstream auto
fudgery, and glib likely should be doing this.

In some future GCC version, gnu99 will almost certainly be the default,
but that future isn't here yet, and people needing adherence to a
standard should pick it manually regardless.

... Adam

--
ubuntu-devel mailing list
ubuntu-devel@lists.ubuntu.com
Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel