From baa44b5eb2e14da3b7b38821968e84de026f5a09 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Wed, 8 Mar 2017 15:15:27 +0100 Subject: [PATCH] fix linkage issue for *BSD system openbsd does not have librt (commit derived from #167) --- source/src/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/src/Makefile b/source/src/Makefile index feb84dc6..0d9d0aeb 100644 --- a/source/src/Makefile +++ b/source/src/Makefile @@ -115,7 +115,10 @@ SERVER_INCLUDES= -DSTANDALONE $(INCLUDES) -I../include SERVER_LIBS= -L../lib -lzdll -lenet -lws2_32 -lwinmm else SERVER_INCLUDES= -DSTANDALONE $(INCLUDES) -SERVER_LIBS= -L../enet/.libs -lenet -lz -lpthread -lrt +SERVER_LIBS= -L../enet/.libs -lenet -lz -lpthread +ifeq (,$(findstring OpenBSD,$(PLATFORM))) +SERVER_LIBS+= -lrt +endif endif SERVER_OBJS= \