From e2ba7cd29617ae05087ad3d25c55a2eb8ce607a3 Mon Sep 17 00:00:00 2001 From: fusion32 Date: Thu, 28 May 2026 23:56:29 -0300 Subject: fix issues and warnings when compiling with glibc < 2.32 (#57, #58) This also fixes some inconsistencies such as mixing both strerror and strerrordesc_np, and possible formatting issues. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 097c430..07f598a 100644 --- a/Makefile +++ b/Makefile @@ -4,13 +4,13 @@ OUTPUTEXE = game CC = g++ CFLAGS = -m64 -fno-strict-aliasing -pedantic -Wall -Wextra -Wno-deprecated-declarations -Wno-unused-parameter -Wno-format-truncation -std=c++11 -pthread -DOS_LINUX=1 -DARCH_X64=1 -LFLAGS = -Wl,-t -lcrypto +LFLAGS = -Wl,-t -lrt -lcrypto DEBUG ?= 0 ifneq ($(DEBUG), 0) - CFLAGS += -g -Og -DENABLE_ASSERTIONS=1 + CFLAGS += -g -Og -DENABLE_ASSERTIONS=1 else - CFLAGS += -O2 + CFLAGS += -O2 endif HEADERS = $(SRCDIR)/common.hh $(SRCDIR)/communication.hh $(SRCDIR)/config.hh $(SRCDIR)/connections.hh $(SRCDIR)/containers.hh $(SRCDIR)/cr.hh $(SRCDIR)/crypto.hh $(SRCDIR)/enums.hh $(SRCDIR)/houses.hh $(SRCDIR)/info.hh $(SRCDIR)/magic.hh $(SRCDIR)/map.hh $(SRCDIR)/moveuse.hh $(SRCDIR)/objects.hh $(SRCDIR)/operate.hh $(SRCDIR)/query.hh $(SRCDIR)/reader.hh $(SRCDIR)/script.hh $(SRCDIR)/threads.hh $(SRCDIR)/writer.hh -- cgit v1.2.3