From 6ada14a8c4c069f6568e8dcb256ccb8ab6d2d22d Mon Sep 17 00:00:00 2001 From: mintsuki Date: Mon, 27 Feb 2023 06:42:58 +0100 Subject: [PATCH] Update --- GNUmakefile | 3 +++ kernel/GNUmakefile | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/GNUmakefile b/GNUmakefile index c4d2bb7..ff5c767 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -1,3 +1,6 @@ +# Nuke built-in rules and variables. +override MAKEFLAGS += -rR + .PHONY: all all: barebones.iso diff --git a/kernel/GNUmakefile b/kernel/GNUmakefile index cdd4273..e6014a6 100644 --- a/kernel/GNUmakefile +++ b/kernel/GNUmakefile @@ -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