Commit b6c0b36c by Josuah Demangeon

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.
parent 5f40c470
...@@ -137,11 +137,11 @@ endif ...@@ -137,11 +137,11 @@ endif
# LIBS := -ldl -lrt # LIBS := -ldl -lrt
LIBS += -lm LIBS += -lm
ifneq ($(OS), FreeBSD) ifneq ($(OS), $(filter $(OS), FreeBSD OpenBSD))
LIBS += -ldl LIBS += -ldl
endif endif
ifneq ($(findstring Darwin, $(shell uname)), Darwin) ifneq ($(OS), $(filter $(OS), FreeBSD OpenBSD Darwin))
LIBS += -lrt LIBS += -lrt
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment