From owner-cvs-all@FreeBSD.ORG Thu May 1 07:36:28 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2C7B537B401; Thu, 1 May 2003 07:36:28 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D2FE443FAF; Thu, 1 May 2003 07:36:27 -0700 (PDT) (envelope-from des@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h41EaR0U056930; Thu, 1 May 2003 07:36:27 -0700 (PDT) (envelope-from des@repoman.freebsd.org) Received: (from des@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h41EaRQ7056929; Thu, 1 May 2003 07:36:27 -0700 (PDT) Message-Id: <200305011436.h41EaRQ7056929@repoman.freebsd.org> From: Dag-Erling Smorgrav Date: Thu, 1 May 2003 07:36:27 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/share/mk bsd.sys.mk X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 01 May 2003 14:36:28 -0000 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. Revision Changes Path 1.15 +12 -1 src/share/mk/bsd.sys.mk