summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorruki <[email protected]>2021-06-29 23:03:50 +0800
committerruki <[email protected]>2021-06-29 23:03:50 +0800
commit0f2beeb90bc66bb39167662a8cae0bd11f6ab723 (patch)
tree71a937158f504be7bb5a2330b1761c634721fb0c /core
parentcb649335c48292c2b496b00357d6b65b1920da13 (diff)
improve makefile
Diffstat (limited to 'core')
-rw-r--r--core/makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/core/makefile b/core/makefile
index f51e0f735..a6b9a82e4 100644
--- a/core/makefile
+++ b/core/makefile
@@ -278,7 +278,9 @@ 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 += $(shell if { cat detect/tbox.c | $(CC) -xc - -ltbox -o /dev/null 2>/dev/null; }; then echo tbox; fi )
+ifeq ($(LUAJIT_SYSTEM),y)
base_LIBNAMES += $(shell if { cat detect/luajit.c | $(CC) -xc - $(shell pkg-config --libs --cflags luajit) -o /dev/null 2>/dev/null; }; then echo luajit-5.1; fi )
+endif
ifneq ($(TERMUX_ARCH),) # on termux/ci?
base_LIBNAMES += m dl
else