From b6c0b36c8aa0a181a541a8cc4320ebde938a0fe0 Mon Sep 17 00:00:00 2001 From: Josuah Demangeon Date: Fri, 8 Jul 2022 14:35:40 +0200 Subject: do not include -lrt or -ldl on platform that do not support them Some platforms were already listed, this includes OpenBSD to the list and makes it easier to add more. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 27ede6ac..032f3a8d 100644 --- a/Makefile +++ b/Makefile @@ -137,11 +137,11 @@ endif # LIBS := -ldl -lrt LIBS += -lm -ifneq ($(OS), FreeBSD) +ifneq ($(OS), $(filter $(OS), FreeBSD OpenBSD)) LIBS += -ldl endif -ifneq ($(findstring Darwin, $(shell uname)), Darwin) +ifneq ($(OS), $(filter $(OS), FreeBSD OpenBSD Darwin)) LIBS += -lrt endif -- cgit v1.2.3