aports/community/cyclone/gcc15.patch
Ariadne Conill 4655a56779 community/cyclone: invoke GCC with -std=gnu17, block cyclone<0.36.0-r3 as build dependency
cyclone 0.36.0-r2 is broken and cannot recompile itself
2025-11-20 10:18:58 -08:00

25 lines
1.2 KiB
Diff

diff --git a/Makefile.config b/Makefile.config
index b7284bb..6968fc3 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -10,7 +10,7 @@ CYC_PROFILING ?=
#CYC_PROFILING ?= -g -pg
#CYC_PROFILING ?= -DCYC_HIGH_RES_TIMERS
-CYC_GCC_OPT_FLAGS ?= -O2
+CYC_GCC_OPT_FLAGS ?= -O2 -std=gnu17
#CYC_GCC_OPT_FLAGS ?= -g
# Change this to 1 to use a custom stack size for threads.
@@ -28,8 +28,8 @@ LIBS += -ldl
endif
# Compiler options
-CFLAGS += $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -fPIC -Wall -Wno-shift-negative-value -Wno-unused-command-line-argument -Iinclude
-BASE_CFLAGS ?= $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -fPIC -Wall -Wno-shift-negative-value -Wno-unused-command-line-argument
+CFLAGS += $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -fPIC -Wall -Wno-shift-negative-value -Wno-unused-command-line-argument -Iinclude -std=gnu17 -Wno-int-conversion
+BASE_CFLAGS ?= $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -fPIC -Wall -Wno-shift-negative-value -Wno-unused-command-line-argument -std=gnu17 -Wno-int-conversion
# Used by Cyclone to compile programs, no need for PIC there
BASE_PROG_CFLAGS ?= $(CYC_PROFILING) $(CYC_GCC_OPT_FLAGS) -Wall
COMP_CFLAGS ?= $(BASE_CFLAGS)