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 b6c0b36c8a)
This commit is contained in:
Josuah Demangeon 2022-07-08 14:35:40 +02:00 committed by Martin Povišer
parent b23f998b81
commit fe0bb59baa
1 changed files with 2 additions and 2 deletions

View File

@ -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