summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormrb0nk500 <b0nk@b0nk.xyz>2021-05-26 16:46:37 -0400
committermrb0nk500 <b0nk@b0nk.xyz>2021-05-26 16:46:37 -0400
commit63f1090ccc54ca33a6556bd3753e0c2d1f466ec1 (patch)
tree3901a9aa796b5dead5294292b4edec79dbc193c3
parent376dcf7dbb2fdc8c8844880cb1f118b61892937a (diff)
Add pthreads, librt, and libdl to the list of
libraries. This is because they're needed in order to use libtcc.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
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 :