From 1461285dbf9285f9471c89ce94ef816680651ebd Mon Sep 17 00:00:00 2001 From: Camille Chauvet Date: Wed, 19 Apr 2023 14:08:48 +0000 Subject: [PATCH] fix: add pthread flag to compile and link --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 10ee4b8..176ce93 100644 --- a/Makefile +++ b/Makefile @@ -15,13 +15,13 @@ NAME = philo CC = clang -FLAGS = -Wall -Wextra -Werror -g +FLAGS = -Wall -Wextra -Werror -g -pthread %.o: %.c ${CC} ${FLAGS} -c -o $@ $< ${NAME}: ${OBJS} - ${CC} ${OBJS} -o ${NAME} + ${CC} ${FLAGS} ${OBJS} -o ${NAME} all: ${NAME}