Date: Thu, 28 Nov 2024 14:05:07 -0700 From: Warner Losh <imp@bsdimp.com> To: Mark Millard <marklmi@yahoo.com> Cc: FreeBSD Standards <freebsd-standards@freebsd.org> Subject: Re: /usr/share/mk/sys.mk for main [so: 15]: .if defined(%POSIX) and CC ?= c89 and CFLAGS ?= -O [still appropriate?] Message-ID: <CANCZdfpFoCt8rKRk4377JhCyEYtrZM3DHzBDegqCcLOf-SXtQw@mail.gmail.com> In-Reply-To: <E0700929-6C81-484D-B351-3CC8888BA66C@yahoo.com> References: <E0700929-6C81-484D-B351-3CC8888BA66C.ref@yahoo.com> <E0700929-6C81-484D-B351-3CC8888BA66C@yahoo.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000091e15b0627ff7054 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Thu, Nov 28, 2024, 1:58=E2=80=AFPM Mark Millard <marklmi@yahoo.com> wrot= e: > 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 .) > What does the section on make specify? I suspect that issue 7 says c99 here. We are no where close to adding all or even most of the issue 8 features, though. Warner =3D=3D=3D > Mark Millard > marklmi at yahoo.com > > > --00000000000091e15b0627ff7054 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" = class=3D"gmail_attr">On Thu, Nov 28, 2024, 1:58=E2=80=AFPM Mark Millard <= ;<a href=3D"mailto:marklmi@yahoo.com">marklmi@yahoo.com</a>> wrote:<br><= /div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le= ft:1px #ccc solid;padding-left:1ex">With the recent POSIX 2024 activity I&#= 39;m wondering if <a href=3D"http://sys.mk" rel=3D"noreferrer noreferrer" t= arget=3D"_blank">sys.mk</a> having:<br> <br> .if defined(%POSIX)<br> CC=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?=3D=C2=A0 =C2=A0 =C2=A0= c89<br> CFLAGS=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 ?=3D=C2=A0 =C2=A0 =C2=A0 -O<br> .else<br> <br> may be outdated for main [so: 15 as stands] and may have<br> been so for some time.<br> <br> <br> <a href=3D"https://pubs.opengroup.org/onlinepubs/9799919799/" rel=3D"norefe= rrer noreferrer" target=3D"_blank">https://pubs.opengroup.org/onlinepubs/97= 99919799/</a> (Issue 8)<br> reports a base document set including:<br> <br> ISO/IEC 9899:2018, Programming Languages =E2=80=94 C (C17)<br> <br> Also: c17 =E2=80=94 compile standard C programs<br> (FreeBSD does not have c17 as a command yet.)<br> <br> <br> <a href=3D"https://pubs.opengroup.org/onlinepubs/9699919799.orig/" rel=3D"n= oreferrer noreferrer" target=3D"_blank">https://pubs.opengroup.org/onlinepu= bs/9699919799.orig/</a> (Issue 7)<br> reports a base document set including:<br> <br> ISO/IEC 9899:1999, Programming Languages - C<br> ISO/IEC 9899:1999/Cor.1:2001(E)<br> ISO/IEC 9899:1999/Cor.2:2004(E)<br> ISO/IEC 9899:1999/Cor.3<br> <br> also: c99 - compile standard C programs<br> <br> (FreeBSD has c99 .)<br></blockquote></div></div><div dir=3D"auto"><br></div= ><div dir=3D"auto">What does the section on make specify? I suspect that is= sue 7 says c99 here. We are no where close to adding all or even most of th= e issue 8 features, though.</div><div dir=3D"auto"><br></div><div dir=3D"au= to">Warner</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div class=3D= "gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;= border-left:1px #ccc solid;padding-left:1ex"> =3D=3D=3D<br> Mark Millard<br> marklmi at <a href=3D"http://yahoo.com" rel=3D"noreferrer noreferrer" targe= t=3D"_blank">yahoo.com</a><br> <br> <br> </blockquote></div></div></div> --00000000000091e15b0627ff7054--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfpFoCt8rKRk4377JhCyEYtrZM3DHzBDegqCcLOf-SXtQw>