mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-05-17 18:46:36 +02:00
25 lines
1.2 KiB
Diff
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)
|