commit 6c55658
default
·
2024-01-13 08:12:16 +0000 UTC
parent a0cb5c6
Rewritten a sentence to be clearer in README.md.
M
Makefile
+1,
-1
1@@ -6,7 +6,7 @@ all: snac
2
3 snac: snac.o main.o data.o http.o httpd.o webfinger.o \
4 activitypub.o html.o utils.o format.o upgrade.o mastoapi.o
5- $(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto -pthread $(LDFLAGS) -o $@
6+ $(CC) $(CFLAGS) -L/usr/local/lib *.o -lcurl -lcrypto $(LDFLAGS) -pthread -o $@
7
8 .c.o:
9 $(CC) $(CFLAGS) $(CPPFLAGS) -I/usr/local/include -c $<
+1,
-1
1@@ -65,7 +65,7 @@ From version 2.27, `snac` includes support for the Mastodon API; if you are not
2 make CFLAGS=-DNO_MASTODON_API
3 ```
4
5-If your compilation process complains about undefined references of `shm_open()` and `shm_unlink()` (it happens, for example, on 20.04.6 LTS), you need to tell `make` to add the `rt` library to the final linking command as follows:
6+If your compilation process complains about undefined references to `shm_open()` and `shm_unlink()` (it happens, for example, on Ubuntu 20.04.6 LTS), run it as:
7
8 ```sh
9 make LDFLAGS=-lrt