Update changelog, add LD_EXTRA variable in td.

This commit is contained in:
Jordan Bancino 2023-04-26 01:43:32 +00:00
parent 459b2e856f
commit fdcf7ec065
2 changed files with 16 additions and 5 deletions

View file

@ -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

View file

@ -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