commit 0cc277877e1074d9b33ad4971301ef32f4100437
parent c81e62facd90605e6943771013604302d659a8af
Author: Hiltjo Posthuma <hiltjo@codemadness.org>
Date: Thu, 20 Nov 2025 16:15:58 +0100
Makefile: add -ltls to LDFLAGS
Fixes running make on OpenBSD:
Warning: target -ltls (prerequisite of: ii) does not have any command (BUG)
Diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
@@ -12,14 +12,14 @@ OBJ = $(SRC:.c=.o)
# use system flags.
II_CFLAGS = $(CFLAGS)
-II_LDFLAGS = $(LDFLAGS)
+II_LDFLAGS = $(LDFLAGS) -ltls
# on systems which provide strlcpy(3),
# remove NEED_STRLCPY from CPPFLAGS and
# remove strlcpy.o from LIBS
II_CPPFLAGS = $(CPPFLAGS) -DVERSION=\"$(VERSION)\" -D_DEFAULT_SOURCE -DNEED_STRLCPY
# -tls is easily provided using libretls.
-LIBS = strlcpy.o -ltls
+LIBS = strlcpy.o
all: ii