From a408da3fed96c474066fe9a0395b252221a1b942 Mon Sep 17 00:00:00 2001 From: "Eric S. Raymond" Date: Thu, 25 May 2017 09:09:11 -0400 Subject: [PATCH] Repair CentOS 6 build (fails due to clock_gettime() being undefined) GitLab issue #2. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 95b561e..343133e 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,6 @@ # Makefile for the open-source release of adventure 2.5 +LIBS=-lrt OBJS=main.o init.o actions1.o actions2.o score.o misc.o SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control @@ -7,7 +8,7 @@ SOURCES=$(OBJS:.o=.c) COPYING NEWS README TODO advent.text control gcc -O $(DBX) -c $< advent: $(OBJS) - gcc -O $(DBX) -o advent $(OBJS) + gcc -O $(DBX) -o advent $(OBJS) $(LIBS) main.o: misc.h funcs.h