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.
This commit is contained in:
Josuah Demangeon 2022-07-08 14:35:40 +02:00
parent 5f40c4704f
commit b6c0b36c8a
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