Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 28 Nov 2024 12:57:40 -0800
From:      Mark Millard <marklmi@yahoo.com>
To:        freebsd-standards@freebsd.org
Subject:   /usr/share/mk/sys.mk for main [so: 15]: .if defined(%POSIX) and CC ?= c89 and CFLAGS ?= -O [still appropriate?]
Message-ID:  <E0700929-6C81-484D-B351-3CC8888BA66C@yahoo.com>
References:  <E0700929-6C81-484D-B351-3CC8888BA66C.ref@yahoo.com>

next in thread | previous in thread | raw e-mail | index | archive | help
With the recent POSIX 2024 activity I'm wondering if sys.mk having:

.if defined(%POSIX)
CC              ?=3D      c89
CFLAGS          ?=3D      -O
.else

may be outdated for main [so: 15 as stands] and may have
been so for some time.


https://pubs.opengroup.org/onlinepubs/9799919799/ (Issue 8)
reports a base document set including:

ISO/IEC 9899:2018, Programming Languages =E2=80=94 C (C17)

Also: c17 =E2=80=94 compile standard C programs
(FreeBSD does not have c17 as a command yet.)


https://pubs.opengroup.org/onlinepubs/9699919799.orig/ (Issue 7)
reports a base document set including:

ISO/IEC 9899:1999, Programming Languages - C
ISO/IEC 9899:1999/Cor.1:2001(E)
ISO/IEC 9899:1999/Cor.2:2004(E)
ISO/IEC 9899:1999/Cor.3

also: c99 - compile standard C programs

(FreeBSD has c99 .)

=3D=3D=3D
Mark Millard
marklmi at yahoo.com




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E0700929-6C81-484D-B351-3CC8888BA66C>