Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 1 May 2003 16:52:51 -0700
From:      "David O'Brien" <obrien@FreeBSD.org>
To:        Dag-Erling Smorgrav <des@FreeBSD.org>
Cc:        cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/share/mk bsd.sys.mk
Message-ID:  <20030501235251.GA53569@dragon.nuxi.com>
In-Reply-To: <200305011436.h41EaRQ7056929@repoman.freebsd.org>
References:  <200305011436.h41EaRQ7056929@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 01, 2003 at 07:36:27AM -0700, Dag-Erling Smorgrav wrote:
> des         2003/05/01 07:36:27 PDT
> 
>   FreeBSD src repository
> 
>   Modified files:
>     share/mk             bsd.sys.mk 
>   Log:
>   Add a mechanism to allow Makefiles to specify the particular C dialect
>   in which the source code is written.  This is controlled by the CSTD
>   variable, which can have one of the following values:
>   
>     - "k&r"               => -traditional
>     - "c89" or "c90"      => -std=iso9899:1990
>     - "c94" or "c95"      => -std=iso9899:199409
>     - "c99"               => -std=iso9899:1999
>   
>   The corresponding option is added to CFLAGS regardless of WARNS level.
>   This also removes -ansi from WARNS level 6, but adds -Wno-long-long to
>   work around a weird gcc bug (-ansi, which is supposedly equivalent to
>   -std=iso9899:1990, seems to turn long long warnings off instead of on)
>   
>   If CSTD is undefined, CFLAGS are unchanged except for the -ansi /
>   -Wno-long-long change mentioned above for WARNS level 6.
   
PLEASE DO NOT ADD ANY MORE STD= TO MAKEFILES.  When this came up in
freebsd-arch you did not have support for this, and you are majorly
trumpling over a change Mux and I have been working on and announced to
freebsd-arch.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030501235251.GA53569>