Skip to content

Commit

Permalink
Enforce sysroot for local builds from existing toolchain
Browse files Browse the repository at this point in the history
  • Loading branch information
klange committed Mar 31, 2022
1 parent 9ddc2ba commit 2432219
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ OC = ${TARGET}-objcopy
STRIP= ${TARGET}-strip

# CFLAGS for kernel objects and modules
KERNEL_CFLAGS = -ffreestanding -O2 -std=gnu11 -g -static
KERNEL_CFLAGS = -ffreestanding -O2 -std=gnu11 -g -static --sysroot=base
KERNEL_CFLAGS += -Wall -Wextra -Wno-unused-function -Wno-unused-parameter
KERNEL_CFLAGS += -pedantic -Wwrite-strings ${ARCH_KERNEL_CFLAGS}

Expand Down
2 changes: 1 addition & 1 deletion build/x86_64.mk
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ ARCH=x86_64

ARCH_KERNEL_CFLAGS = -mno-red-zone -fno-omit-frame-pointer -mfsgsbase
ARCH_KERNEL_CFLAGS += -mgeneral-regs-only -z max-page-size=0x1000 -nostdlib
ARCH_USER_CFLAGS += -z max-page-size=0x1000
ARCH_USER_CFLAGS += -z max-page-size=0x1000 --sysroot=base

TARGET=x86_64-pc-toaru

Expand Down

0 comments on commit 2432219

Please sign in to comment.