This commit is contained in:
mintsuki 2023-02-27 06:42:58 +01:00
parent 3f0938e4c9
commit 6ada14a8c4
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,6 @@
# Nuke built-in rules and variables.
override MAKEFLAGS += -rR
.PHONY: all
all: barebones.iso

View file

@ -1,3 +1,6 @@
# Nuke built-in rules and variables.
override MAKEFLAGS += -rR
# This is the name that our final kernel executable will have.
# Change as needed.
override KERNEL := kernel.elf
@ -64,7 +67,7 @@ override LDFLAGS += \
-z max-page-size=0x1000 \
-T linker.ld
# Check if the linker supports -no-pie and enable it if it does
# Check if the linker supports -no-pie and enable it if it does.
ifeq ($(shell $(LD) --help 2>&1 | grep 'no-pie' >/dev/null 2>&1; echo $$?),0)
override LDFLAGS += -no-pie
endif