From 63f1090ccc54ca33a6556bd3753e0c2d1f466ec1 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Wed, 26 May 2021 16:46:37 -0400 Subject: Add pthreads, librt, and libdl to the list of libraries. This is because they're needed in order to use libtcc. --- Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 92f2aee..bce1e6d 100644 --- a/Makefile +++ b/Makefile @@ -17,7 +17,7 @@ OBJ_NAME = libtcc-test all : clean $(OBJ_NAME) $(OBJ_NAME) : $(OBJS) - $(CC) $(OBJS) $(CFLAGS) -ltcc -o $(OBJ_NAME) + $(CC) $(OBJS) $(CFLAGS) -ltcc -lpthread -lrt -ldl -o $(OBJ_NAME) %.o : %.c $(CC) -c $< -o $@ $(CFLAGS) clean : -- cgit v1.2.3-13-gbd6f