summaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
authorAndrés M <andmarti1424@users.noreply.github.com>2018-07-16 15:44:29 -0300
committerGitHub <noreply@github.com>2018-07-16 15:44:29 -0300
commiteb807201c320d1991203e1bf9d98c92b0fc0afad (patch)
treeb47234644c09911a93aa3c88f9e063ffffb61a62 /src/Makefile
parent8d835aba0ca38182d7ef3d940b6fe653a6c74b59 (diff)
parent991e3c75ab41ccaee41ceefc8b36853e2655b527 (diff)
Merge pull request #267 from sjmulder/openbsd
OpenBSD support (mostly wordexp() workaround)
Diffstat (limited to 'src/Makefile')
-rwxr-xr-xsrc/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
index e42ce58..fb08e9a 100755
--- a/src/Makefile
+++ b/src/Makefile
@@ -87,6 +87,11 @@ ifneq (, $(shell which gnuplot))
CFLAGS += -DGNUPLOT
endif
+# OpenBSD does not implement wordexp()
+ifeq ($(shell uname -s),OpenBSD)
+ CFLAGS += -DNO_WORDEXP
+endif
+
# dynamic linking (not available in BSD)
ifneq ($(shell uname -s | grep -o BSD),BSD)
LDLIBS += -ldl