summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosuah Demangeon <me@josuah.net>2022-07-08 14:35:40 +0200
committerJosuah Demangeon <me@josuah.net>2022-07-15 14:34:10 +0200
commitb6c0b36c8aa0a181a541a8cc4320ebde938a0fe0 (patch)
tree8041e79fdb5dd126509390737459b948844188f1
parent5f40c4704f6f2ab027b12c3f61765d8a2090c92a (diff)
downloadabc-b6c0b36c8aa0a181a541a8cc4320ebde938a0fe0.tar.gz
abc-b6c0b36c8aa0a181a541a8cc4320ebde938a0fe0.tar.bz2
abc-b6c0b36c8aa0a181a541a8cc4320ebde938a0fe0.zip
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.
-rw-r--r--Makefile4
1 files 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