[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: [patch] Add -std=c89 to CFLAGS for gcc

From: Daniel Rall <dlr_at_collab.net>
Date: 2007-11-17 00:52:26 CET

On Thu, 30 Aug 2007, mark benedetto king wrote:

>
> On Thu, Aug 30, 2007 at 03:03:17PM -0700, Daniel Rall wrote:
> >
> > On Aug 14, 2007, at 11:09 AM, Erik Huelsmann wrote:
> >
> > > On 8/14/07, Daniel Rall <dlr@finemaltcoding.com> wrote:
> > >>
> > >> On Aug 14, 2007, at 2:38 AM, Lieven Govaerts wrote:
> > >>
> > >>> Quoting Erik Huelsmann <ehuels@gmail.com>:
> > >>>
>
> [...]
>
> > >>>>
> > >>>> PS: Is there something in my CFLAGS I can set to prevent this kind
> > >>>> of error?
> > >>>
> > >>> Adding -std=c89 should have that effect.
> > >>
> > >> Is there any particular reason why we don't add this to Makefile by
> > >> default?
> > >
> > > Thanks for asking, because I was wondering the same thing. I think we
> > > should (when we detect GCC, that is).
> >
> > How about this patch, then?
> >
> > [[[
> > * configure.in
> > (CFLAGS): Add -std=c89 when gcc is detected.
> > ]]]
> >
>
> This caused trouble in the past (see r11054).

Thanks Mark. After some research and testing, I've backed out that
change in r27869. It wasn't as helpful as hoped, and as a bonus,
broke the build of the Ruby bindings for me on Linux (FC6).

  • application/pgp-signature attachment: stored
Received on Sat Nov 17 00:52:42 2007

This is an archived mail posted to the Subversion Dev mailing list.