summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-01-12 17:40:26 +0100
committerdefault <nobody@localhost>2024-01-12 17:40:26 +0100
commit034a08a8f0a3b3c73db875b9d89103b7839eb9f3 (patch)
treea6ea32be0b4b91a51f63083f04c4a49781ffcd6a
parent9185cc4baa70b77336aa5a862cd23c3913800c0c (diff)
Added -lrt to the linkage line, as it's needed at least in Ubuntu 20.04.6 LTS.
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2612b7d..47da509 100644
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,7 @@ all: snac
snac: snac.o main.o data.o http.o httpd.o webfinger.o \
activitypub.o html.o utils.o format.o upgrade.o mastoapi.o
- $(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto -pthread $(LDFLAGS) -o $@
+ $(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto -lrt -pthread $(LDFLAGS) -o $@
.c.o:
$(CC) $(CFLAGS) $(CPPFLAGS) -I/usr/local/include -c $<