summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-02-05 20:32:25 +0300
committerNakidai <nakidai@disroot.org>2026-02-05 20:32:25 +0300
commitb7e7843214ba36ca06289d1925c05e6586acac41 (patch)
treedf14b71a9c1d1b3f222eb471ce7393dcc6eca0f2 /Makefile
parent8e3cdecea1496b8be0e96e3ba8507c6b786b9d1a (diff)
downloadlibreircd-b7e7843214ba36ca06289d1925c05e6586acac41.tar.gz
libreircd-b7e7843214ba36ca06289d1925c05e6586acac41.zip
Fix linking
CFLAGS is a *c*ompiler flags and thus are unneeded for linking, perhaps
even harmful. LDLIBS are needed for linking as program can require some
external libraries and those should be listed exactly here
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b9d6948..ebf8cff 100644
--- a/Makefile
+++ b/Makefile
@@ -16,6 +16,6 @@ OBJS += writef.o
 all: ${NAME}
 ${OBJS}: ircd.h config.h
 ${NAME}: ${OBJS}
-	${CC} -o ${NAME} ${CFLAGS} ${LDFLAGS} ${OBJS}
+	${CC} -o ${NAME} ${LDFLAGS} ${OBJS} ${LDLIBS}
 clean:
 	rm -f ${NAME} ${OBJS}