From fe0bb59baa2ad3184a928b3d335cd69682a263e7 Mon Sep 17 00:00:00 2001 From: Josuah Demangeon Date: Fri, 8 Jul 2022 14:35:40 +0200 Subject: [PATCH] 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. (cherry picked from commit b6c0b36c8aa0a181a541a8cc4320ebde938a0fe0) --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 6780c3571..bb62f14a1 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