From fdcf7ec06587c4903c5bf2b85ba6a163316ce8b4 Mon Sep 17 00:00:00 2001 From: Jordan Bancino Date: Wed, 26 Apr 2023 01:43:32 +0000 Subject: [PATCH] Update changelog, add LD_EXTRA variable in td. --- man/man7/telodendria-changelog.7 | 12 ++++++++++-- tools/bin/td | 9 ++++++--- 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/man/man7/telodendria-changelog.7 b/man/man7/telodendria-changelog.7 index 19aec10..f5a3ab8 100644 --- a/man/man7/telodendria-changelog.7 +++ b/man/man7/telodendria-changelog.7 @@ -1,4 +1,4 @@ -.Dd $Mdocdate: April 24 2023 $ +.Dd $Mdocdate: April 26 2023 $ .Dt TELODENDRIA-CHANGELOG 7 .Os Telodendria Project .Sh NAME @@ -53,6 +53,10 @@ Added support for the .Pa /_matrix/client/v3/profile/* endpoints. .It +Added support for the +.Pa /_matrix/client/v3/capabilities +endpoint. +.It Added support for token-based user registration. Note that there is as of yet no admin-facing way to create these registration tokens, but the APIs are in place. @@ -244,8 +248,12 @@ now shuts down cleanly in response to SIGTERM. Did some general refactoring to make the source code more readable and easier to maintain. .It -Fixed a number of memory-related issues. +Fixed a number of memory-related issues, including switching out +some unsafe functions for safer versions, per the recommendations +of the OpenBSD linker. .El +.Pp +\&... And many more! .Sh v0.2.1 .Pp Monday, March 6, 2023 diff --git a/tools/bin/td b/tools/bin/td index 29fc85f..751e996 100644 --- a/tools/bin/td +++ b/tools/bin/td @@ -25,9 +25,10 @@ : "${DEFINES:=-D_DEFAULT_SOURCE -DTELODENDRIA_VERSION=\"${TELODENDRIA_VERSION}-$(uname)\"}" : "${CC:=cc}" -: "${CFLAGS:=-Wall -Wextra -pedantic -ansi -O3 -pipe}" +: "${CFLAGS:=-Wall -Wextra -pedantic -std=c89 -O3 -pipe}" : "${STATIC:=-static -Wl,-static}" -: "${LDFLAGS:=-lm -pthread -flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections}" +: "${LD_EXTRA:=-flto -fdata-sections -ffunction-sections -s -Wl,-gc-sections}" +: "${LDFLAGS:=-lm -pthread}" : "${PROG:=telodendria}" . "$(pwd)/tools/lib/common.sh" @@ -59,8 +60,10 @@ MAIN="Main" if [ "$DEBUG" = "1" ]; then CFLAGS="$CFLAGS -O0 -g" - LDFLAGS="-lm -pthread ${TLS_LIBS}" + LDFLAGS="${LDFLAGS} ${TLS_LIBS}" PROG="$PROG-debug" +else + LDFLAGS="${LDFLAGS} ${LD_EXTRA} ${TLS_LIBS}" fi # Check the modificiation time of a file. This is used to do