mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +00:00
Kernel: Build with i686-pc-serenity-g++.
This works just fine, and now we only need one cross-compiler. :^)
This commit is contained in:
parent
ec7817af37
commit
6df5e3f51a
1 changed files with 4 additions and 4 deletions
|
@ -76,7 +76,7 @@ OBJS = $(CXX_OBJS) Boot/boot.ao
|
||||||
KERNEL = kernel
|
KERNEL = kernel
|
||||||
ARCH_FLAGS =
|
ARCH_FLAGS =
|
||||||
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
STANDARD_FLAGS = -std=c++17 -nostdinc++ -nostdlib -nostdinc
|
||||||
KERNEL_FLAGS =
|
KERNEL_FLAGS = -ffreestanding
|
||||||
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
WARNING_FLAGS = -Wextra -Wall -Wundef -Wcast-qual -Wwrite-strings -Wimplicit-fallthrough
|
||||||
FLAVOR_FLAGS = -mregparm=3 -fno-exceptions -fno-rtti
|
FLAVOR_FLAGS = -mregparm=3 -fno-exceptions -fno-rtti
|
||||||
OPTIMIZATION_FLAGS = -Os
|
OPTIMIZATION_FLAGS = -Os
|
||||||
|
@ -88,9 +88,9 @@ DEFINES = -DSERENITY -DKERNEL -DSANITIZE_PTRS
|
||||||
|
|
||||||
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
CXXFLAGS = -MMD -MP $(WARNING_FLAGS) $(OPTIMIZATION_FLAGS) $(KERNEL_FLAGS) $(FLAVOR_FLAGS) $(ARCH_FLAGS) $(STANDARD_FLAGS) $(SUGGEST_FLAGS) $(INCLUDE_FLAGS) $(DEFINES)
|
||||||
#CXX = clang $(CLANG_FLAGS)
|
#CXX = clang $(CLANG_FLAGS)
|
||||||
CXX = i686-elf-g++
|
CXX = i686-pc-serenity-g++
|
||||||
LD = i686-elf-ld
|
LD = i686-pc-serenity-ld
|
||||||
AS = i686-elf-as
|
AS = i686-pc-serenity-as
|
||||||
LDFLAGS = -T linker.ld
|
LDFLAGS = -T linker.ld
|
||||||
|
|
||||||
all: $(KERNEL) kernel.map
|
all: $(KERNEL) kernel.map
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue