blob: ae2fb35e8b949f6959a3461bf3a2daabfa34256f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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
|