From: Lukas Jiriste Date: Thu, 28 Nov 2024 10:03:09 +0000 (+0100) Subject: Add -fPIE flag to Makefile X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;h=b03a4e88f155262a935c26b2699272d05e2a0c86;p=Libft.git 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). --- 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