summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-05-09 00:47:05 +0800
committerruki <[email protected]>2020-05-08 22:42:33 +0800
commit832666d0784c5d01e507fcafdf1cd4f553335a30 (patch)
treed1fa1552d2abde19d1ca5a6ca01cbc3b15be92b4
parent5ea47e2646c2ba8382f46ed3ff117514a4208b96 (diff)
update makefile for bsd
-rw-r--r--core/makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/core/makefile b/core/makefile
index 3af3a5d57..c9aa5a060 100644
--- a/core/makefile
+++ b/core/makefile
@@ -297,6 +297,14 @@ base_LIBNAMES += m dl pthread
endif
endif
+ifeq ($(PLAT),bsd)
+base_LIBPATH :=
+base_LIBNAMES :=
+base_LIBNAMES += $(shell if { cat detect/curses.c | $(CC) -xc - -lcurses -ltinfo -o /dev/null 2>/dev/null; }; then echo curses tinfo; fi )
+base_LIBNAMES += $(shell if { cat detect/readline.c | $(CC) -xc - -lreadline -o /dev/null 2>/dev/null; }; then echo readline; fi )
+base_LIBNAMES += m dl pthread
+endif
+
# check jit compiler
ifeq ($(PLAT),linux)
luajit_JIT :=$(shell if [ -f "/etc/redhat-release" ]; then echo "nojit"; else echo "jit"; fi )