From: Eric S. Raymond Date: Thu, 25 May 2017 13:09:11 +0000 (-0400) Subject: Repair CentOS 6 build (fails due to clock_gettime() being undefined) X-Git-Tag: seed~51 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=76527321b58bf62adb998531ea5dda856e2b9afb;p=open-adventure.git Repair CentOS 6 build (fails due to clock_gettime() being undefined) GitLab issue #2. --- 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