diff options
| author | Nakidai <nakidai@disroot.org> | 2026-02-05 20:32:25 +0300 |
|---|---|---|
| committer | Nakidai <nakidai@disroot.org> | 2026-02-05 20:32:25 +0300 |
| commit | b7e7843214ba36ca06289d1925c05e6586acac41 (patch) | |
| tree | df14b71a9c1d1b3f222eb471ce7393dcc6eca0f2 | |
| parent | 8e3cdecea1496b8be0e96e3ba8507c6b786b9d1a (diff) | |
| download | libreircd-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
| -rw-r--r-- | Makefile | 2 |
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} |