From b03a4e88f155262a935c26b2699272d05e2a0c86 Mon Sep 17 00:00:00 2001 From: Lukas Jiriste Date: Thu, 28 Nov 2024 11:03:09 +0100 Subject: [PATCH] Add -fPIE flag to Makefile The -fPIE flag has something to do with position independent code. I think I've encountered this problem before when using ft_printf, because its ability to print pointer values (addresses). --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1e35d45..ddf223d 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC := cc -CFLAGS := -std=c99 -Wall -Wextra -Werror -Wpedantic +CFLAGS := -std=c99 -Wall -Wextra -Werror -Wpedantic -fPIE AR := ar RM := rm -f -- 2.30.2