From b67dd3aa39da41f660b0f3d7bf385bb46e2c083f Mon Sep 17 00:00:00 2001 From: Amelia Coutard Date: Fri, 6 May 2022 20:39:56 +0200 Subject: [PATCH] Added the system includes, to be able to use some of the standard headers (the freestanding ones) until I make my os specific toolchain (in a long time, probably) --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 995e208..7c6c8c0 100644 --- a/Makefile +++ b/Makefile @@ -7,7 +7,8 @@ DEPS_DIR ?= deps/ CXX := x86_64-elf-g++ CXXFLAGS ?= -O2 CXXFLAGS := $(CXXFLAGS) -Wall -Wextra -Werror -std=c++20 \ - -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fno-exceptions -fno-rtti + -ffreestanding -mcmodel=kernel -mno-red-zone -mno-mmx -mno-sse -mno-sse2 -fno-exceptions -fno-rtti \ + -isystem /usr/include -isystem /usr/include/c++/11.2.0 -isystem /usr/include/c++/11.2.0/x86_64-pc-linux-gnu LDFLAGS ?= -O2 LDFLAGS := $(LDFLAGS) -Wall -Wextra -Werror -std=c++20 \ -- 2.47.0