Browse Source

Added -lrt to the linkage line, as it's needed at least in Ubuntu 20.04.6 LTS.

default 1 year ago
parent
commit
034a08a8f0
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile

+ 1 - 1
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 $<