From 5cb26317c8b39890abd247335885fe6f4c07146e Mon Sep 17 00:00:00 2001 From: Kimplul Date: Thu, 11 May 2023 23:08:08 +0300 Subject: only init is pic and fix a warning --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 89f8033..3d70d6b 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ DEBUGFLAGS != [ $(RELEASE) ] \ && echo "-flto -O2 -DNDEBUG" \ || echo "-O0 -DDEBUG" -CFLAGS = -ffreestanding -nostdlib -fno-pie -std=c17 -Wall -Wextra -Wvla -D$(ARCH) -g -fpic +CFLAGS = -ffreestanding -nostdlib -fno-pie -std=c17 -Wall -Wextra -Wvla -D$(ARCH) -g DEPFLAGS = -MT $@ -MMD -MP -MF $@.d LINTFLAGS = -fsyntax-only PREPROCESS = -E @@ -71,7 +71,7 @@ KERNEL_LINK := arch/$(ARCH)/conf/kernel-link INIT_LINK := arch/$(ARCH)/conf/init-link KERN_FLAGS != [ $(UBSAN) ] && echo -fsanitize=undefined || echo -INIT_FLAGS := +INIT_FLAGS := -fpic KERNEL_OBJECTS != ./scripts/gen-deps --kernel --compile "$(KERNEL_SOURCES)" INIT_OBJECTS != ./scripts/gen-deps --init --compile "$(INIT_SOURCES)" -- cgit v1.3