ARCH=i686 # define compiler, linker, archiver and strip and their flags # FIXME: cpp threadsafe statics AS := i686-elf-as CC := i686-elf-gcc CXX := i686-elf-g++ CFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -fanalyzer -ffreestanding -std=gnu11 \ -mgeneral-regs-only CFLAGS += $(shell echo ${CONFIG_CFLAGS}) CXXFLAGS := -Wall -Wextra -Wpedantic -Wshadow -Wconversion -ffreestanding -std=c++17 \ -mgeneral-regs-only -fno-use-cxa-atexit -fno-threadsafe-statics -fno-exceptions -fno-rtti CXXFLAGS += $(shell echo ${CONFIG_CXXFLAGS}) LD := i686-elf-ld LDFLAGS := -static -nostdlib LDFLAGS += $(shell echo ${CONFIG_LDFLAGS}) AR := i686-elf-ar ARFLAGS := -crus STRIP := i686-elf-strip