aboutsummaryrefslogtreecommitdiff
path: root/Makefile.config
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile.config')
-rw-r--r--Makefile.config11
1 files changed, 2 insertions, 9 deletions
diff --git a/Makefile.config b/Makefile.config
index 836c094..1f9331d 100644
--- a/Makefile.config
+++ b/Makefile.config
@@ -33,21 +33,14 @@ CONFIG_KB_PS2=y
ARCH=i686
# define compiler, linker, archiver and strip and their flags
-# FIXME: cpp threadsafe statics
${ARCH}_AS := i686-elf-as
${ARCH}_CC := i686-elf-gcc
${ARCH}_CCID := $(shell ${${ARCH}_CC} --version | head -n1)
-${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 \
- -mgeneral-regs-only \
+${ARCH}_CFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -fanalyzer \
+ -D__ARCH__="${ARCH}" -ffreestanding -std=gnu11 -mgeneral-regs-only \
$(shell echo ${CONFIG_CFLAGS})
-${ARCH}_CXX := i686-elf-g++
-${ARCH}_CXXID := $(shell ${${ARCH}_CXX} --version | head -n1)
-${ARCH}_CXXFLAGS := -Wall -Wextra -Wpedantic -Werror=shadow -Wconversion -ffreestanding -std=c++17 \
- -mgeneral-regs-only -fno-use-cxa-atexit -fno-threadsafe-statics -fno-exceptions -fno-rtti \
- $(shell echo ${CONFIG_CXXFLAGS})
-
${ARCH}_LD := i686-elf-ld
${ARCH}_LDID := $(shell ${${ARCH}_LD} --version | head -n1)
${ARCH}_LDFLAGS := -static -nostdlib \