From 73ce944bb2d8a2e54288ba0c316311da90eb5798 Mon Sep 17 00:00:00 2001 From: Nikolai Lifanov Date: Wed, 31 May 2017 13:01:53 -0400 Subject: [PATCH] only add -lrt on Linux Most other UNIX-likes (like *BSD) don't need it. --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a34c7a6..a6f3af7 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,11 @@ # Makefile for the open-source release of adventure 2.5 CCFLAGS=-std=c99 -LIBS=-lrt +LIBS= UNAME_S := $(shell uname -s) GCCVERSIONGTEQ4 := $(shell expr `gcc -dumpversion | cut -f1 -d.` \>= 4) -ifeq ($(UNAME_S),Darwin) - LIBS= +ifeq ($(UNAME_S),Linux) + LIBS=-lrt else ifeq "$(GCCVERSIONGTEQ4)" "1" CC=c99 endif