[ATTN] GCC and make Maintainers: SUS V5 POSIX 2024 make CC default c17

brian.inglis@systematicsw.ab.ca brian.inglis@systematicsw.ab.ca
Sun Nov 1 15:16:01 GMT 2026


On 2026-10-31 23:59, Marco Atzeri via Cygwin-apps wrote:
> On 01/11/2026 00:39, Brian Inglis via Cygwin-apps wrote:
>> Hi folks.
>>
>> SUS V5 POSIX 2024, quoted at bottom, shows that POSIX conformant make sets the 
>> default value for CC = c17, which is not installed in Cygwin.
>>
>> For POSIX conformance, could we please have c17 installed in upcoming releases 
>> of gcc-core, assuming there is some method for having it defined and installed 
>> to support -std=c17 or -std=gnu17 by default.
>>
>> Could we please also have make updated to default to this setting, assuming 
>> there are POSIX updates or options available.
>>
> 
> make has no default on the matter.
> It takes cc as default compiler

If .POSIX target is defined, the quoted list of definitions should be set:

     .SCCS_GET:
         sccs $(SCCSFLAGS) get $(SCCSGETFLAGS) $@

     .SUFFIXES: .o .c .y .l .a .sh .c~ .y~ .l~ .sh~
     MACROS
     AR=ar
     ARFLAGS=-rv
     YACC=yacc
     YFLAGS=
     LEX=lex
     LFLAGS=
     LDFLAGS=
     CC=c17
     CFLAGS=-O 1
     GET=get
     GFLAGS=
     SCCSFLAGS=
     SCCSGETFLAGS=-s

currently that sets CC=c99

> $ make -p  | grep -i "^compile"
> make: *** No targets specified and no makefile found.  Stop.
> COMPILE.m = $(OBJC) $(OBJCFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
> COMPILE.mod = $(M2C) $(M2FLAGS) $(MODFLAGS) $(TARGET_ARCH)
> COMPILE.c = $(CC) $(CFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
> COMPILE.p = $(PC) $(PFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
> COMPILE.cpp = $(COMPILE.cc)
> COMPILE.def = $(M2C) $(M2FLAGS) $(DEFFLAGS) $(TARGET_ARCH)
> COMPILE.C = $(COMPILE.cc)
> COMPILE.f = $(FC) $(FFLAGS) $(TARGET_ARCH) -c
> COMPILE.r = $(FC) $(FFLAGS) $(RFLAGS) $(TARGET_ARCH) -c
> COMPILE.S = $(CC) $(ASFLAGS) $(CPPFLAGS) $(TARGET_MACH) -c
> COMPILE.s = $(AS) $(ASFLAGS) $(TARGET_MACH)
> COMPILE.F = $(FC) $(FFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
> COMPILE.cc = $(CXX) $(CXXFLAGS) $(CPPFLAGS) $(TARGET_ARCH) -c
> 
> $ make -p  | grep -i "^cc"
> make: *** No targets specified and no makefile found.  Stop.
> CC = cc
> 
> $ cc --version
> cc (GCC) 14.4.0
> ..
-- 
Take care. Thanks, Brian Inglis              Calgary, Alberta, Canada

La perfection est atteinte                   Perfection is achieved
non pas lorsqu'il n'y a plus rien à ajouter  not when there is no more to add
mais lorsqu'il n'y a plus rien à retrancher  but when there is no more to cut
                                 -- Antoine de Saint-Exupéry


More information about the Cygwin-apps mailing list